Skip to content

implement a StructView{T} type #33

@jrevels

Description

@jrevels

Similar to MapView, there should be a StructView{T} type that allows lazy, well-typed field access via getproperty. Then, users can really nicely stage the laziness of MsgPack's decoding/copying for their use case. For example, a Vector{StructView{T}} would eagerly "tape" all structs in the buffer, whereas ArrayView{StructView{T}} would only "tape" the array containing the structs, and let the structs themselves be "taped" only upon access, etc.

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