MsgPack.jl icon indicating copy to clipboard operation
MsgPack.jl copied to clipboard

implement a `StructView{T}` type

Open jrevels opened this issue 5 years ago • 0 comments

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.

jrevels avatar Sep 10 '19 21:09 jrevels