Skip to content

Fixed length #25

@oknozor

Description

@oknozor

Hello , is it possible to set a fixed length for a string field ? I would need something like this :

#[derive(Protocol, Debug, Clone, PartialEq, Eq)]
pub struct DatFile {
    #[protocol(fixed_lenght(8))]
    game_version: String,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions