Buffer.length

Returns what amounts to the current length of the buffer; the distance between the current position pos and the last element end.

struct Buffer(T, Flag!"dynamic" dynamic = No.dynamic, size_t originalSize = 128)
pure nothrow const inout
length
()

Return Value

Type: auto

The buffer's current length.