Skip to content

How about offset into some data? #337

@r4v3n6101

Description

@r4v3n6101

Hello. First of all, my thanks for this crate.
So, I'm working on binary data parser, but I have some problems about offsets. Structure looks like this:

begin
header (16 bytes)
offsets point to data from beginning (count of N i32 which is acquired from header) 
...
data somewhere in block of input 
...
more data
...
and so on
...
end

How can I solve the problem of offset access using combine crate? Header and data by offsets should be stored in custom struct. Thanks in advance!

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