StructSerializer.load

Loads/deserializes the content of s and its array members.

receive is called repeatedly; on each call, it must populate the provided data buffer with data previously produced by dump(). Data which was populated once should not be populated again. So the delegate must behave like a stream receive function.

  1. size_t load(S* s, InputStream input)
  2. size_t load(S* s, void delegate(void[] data) receive)
    struct StructSerializer(bool AllowUnions = false)
    static
    size_t
    load
    (
    S
    )
    (
    S* s
    ,
    scope void delegate
    (
    void[] data
    )
    receive
    )

Parameters

s S*

struct instance (pointer)

receive void delegate
(
void[] data
)

receiving callback delegate

Return Value

Type: size_t

number of bytes read

Meta