Skip to content

Segmenting nested reads #2

@glomdom

Description

@glomdom

How should we segment nested reads?

For example, in the current generator:

yield return SyntaxFactory.ParseStatement($"{outputName}.{field.Name} = {fieldType.Name}.FromBinary(reader);");

This can neither be a fixed or a dynamic segment. The idea is to recursively build segments for the type and then commit a ObjectSegment detailing if its fixed or dynamic based on the fields inside.

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