Deserializer.deserialize

Identical to contiguous.Deserializer.deserialize but instead of modifying input buffer copies the deserialized data to provided Contiguous wrapper.

  1. Contiguous!(S) deserialize(Buffer!(void) src)
  2. Contiguous!(S) deserialize(void[] src)
  3. Contiguous!(S) deserialize(void[] src, Contiguous!(S) dst)
    struct Deserializer
    static
    deserialize
    (
    S
    )
    (
    in void[] src
    ,
    ref Contiguous!(S) dst
    )
    out (_s) { auto s = cast(Contiguous!(S))_s; assert (s.data.ptr is dst.ptr); debug(DeserializationTrace) { Stdout.formatln("< deserialize!({})({}, {}) : {}", S.stringof, src.ptr, dst.ptr, s.ptr); } }

Parameters

S

struct type src is assumed to contain

src void[]

buffer previously created by Serializer, unchanged

dst Contiguous!(S)

buffer to store deserialized data

Return Value

Type: Contiguous!(S)

dst by value

Meta