Packer.pack

Serializes argument and writes to stream.

If the argument is the pointer type, dereferences the pointer and serializes pointed value.

int  a = 10;
int* b = &b;

packer.pack(b);  // serializes 10, not address of a

Serializes nil if the argument of nullable type is null.

NOTE: MessagePack doesn't define $(D_KEYWORD real) type format. Don't serialize $(D_KEYWORD real) if you communicate with other languages. Transfer $(D_KEYWORD double) serialization if $(D_KEYWORD real) on your environment equals $(D_KEYWORD double).

Return Value

Type: TThis

self, i.e. for method chaining.

Meta