Skip to content

[Help] Serializer/Deserializer for type using variable length encoding scheme #4

@kamyuentse

Description

@kamyuentse

For example, I hava a strcut defined as follow:

pub struct VariableLength(u32);

And the field using a variable length encoding scheme, how can I implement Serializer/Deserializer for it?

VaribaleLength <---> Vec<u8>/&[u8]

Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions