Function WriteBuffer.length

Note that length doesn't return the real length of the data, but only the array length that will be returned with buffer next time. Be sure to call buffer and set += until length returns 0.

ulong length() pure nothrow @property @nogc @safe const;

Returns

Data size.