Alias SegmentedByteBuffer
Byte-oriented name for SegmentedBuffer!ubyte.
Use this type when a consumer receives HTTP bodies, file ranges, uploads, or other byte streams in chunks. It has the same API as the generic buffer but makes the intended payload type clear at the call site.
import containers : SegmentedByteBuffer;
auto body = SegmentedByteBuffer(32 * 1024, 8 * 1024 * 1024);
const accepted = body .append(networkChunk);
if (accepted != networkChunk .length)
handleCapacityLimit();