StructSerializer.dump

Dumps/serializes the content of s and its array members.

send is called repeatedly; on each call, it must store or forward the provided data.

  1. size_t dump(S* s, OutputStream output)
  2. size_t dump(S* s, void delegate(void[] data) receive)
    struct StructSerializer(bool AllowUnions = false)
    static
    size_t
    dump
    (
    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 written

Meta