Deserializer.deserialize

Deserializes src in-place. If array branching is needed, length of src will be increased to be able to store those.

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

Parameters

S

struct type expected

src Buffer!(void)

data buffer previously created by Serializer

Return Value

Type: Contiguous!(S)

src wrapped in Contiguous, ready to use data. Must not outlive src origin.

Meta