Length of the written data.
$(D_KEYWORD this).
auto b = defaultAllocator.make!WriteBuffer; ubyte[6] buf = [23, 23, 255, 128, 127, 9]; b ~= buf; assert(b.length == 6); b += 2; assert(b.length == 4); b += 4; assert(b.length == 0); defaultAllocator.dispose(b);
Sets how many bytes were written. It will shrink the buffer appropriately. Always set this property after calling $(D_PSYMBOL buffer).