VersionDecorator.load

Loads versioned struct from buffer in-place

If deserialized struct is of different version than requested one, converts it iteratively, one version increment/decrement at time.

  1. Contiguous!(S) load(Buffer!(void) buffer)
  2. Contiguous!(S) load(void[] buffer)
    class VersionDecorator
    load
    (
    S
    )
    (
    ref void[] buffer
    )

Parameters

buffer void[]

data previously generated by store method, contains both version data and serialized struct. Will be extended if needed and modified in-place, version bytes removed

Return Value

Type: Contiguous!(S)

part of buffer after deserialization and version stripping, may be wrapped in deserializer-specific struct

Meta