Result!(size_t, VarintError): bytes written on success; on
INSUFFICIENT_CAPACITY (with examined == 0) the buffer is untouched. Use uint64Length to size the buffer.
Result!(size_t, VarintError) encodeUint64(ulong v,
return scope ubyte[] dst) @safe pure nothrow @nogcEncodes v as a canonical varint into dst (non-committing).
v | the value to encode. |
dst | caller-provided output buffer. |
Result!(size_t, VarintError): bytes written on success; on
INSUFFICIENT_CAPACITY (with examined == 0) the buffer is untouched. Use uint64Length to size the buffer.