nbuff.buffer

Undocumented in source.

Members

Aliases

BufferChunk
alias BufferChunk = immutable(ubyte)[]
Undocumented in source.
BufferChunksArray
alias BufferChunksArray = immutable(BufferChunk)[]
Undocumented in source.
MutableNbuffChunk
alias MutableNbuffChunk = UniquePtr!MutableMemoryChunk
Undocumented in source.
allocator
alias allocator = Mallocator.instance
Undocumented in source.

Functions

safe_printf
void safe_printf(A a)
Undocumented in source. Be warned that the author may not have intended to support it.
safe_tracef
void safe_tracef(string f, A args, string file, int line)
Undocumented in source. Be warned that the author may not have intended to support it.
smart_ptr
auto smart_ptr(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
unique_ptr
auto unique_ptr(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

BufferError
Exception BufferError;

Buffer internal struct problem

IndexOutOfRange
Exception IndexOutOfRange;

Requested index is out of range

MemPoolException
Exception MemPoolException;
Undocumented in source.
NbuffError
Exception NbuffError;
Undocumented in source.
RangeEmpty
Exception RangeEmpty;

Range Empty exception

_mempool
MemPool _mempool;
Undocumented in source.

Structs

ImmutableMemoryChunk
struct ImmutableMemoryChunk
Undocumented in source.
MemPool
struct MemPool
Undocumented in source.
MutableMemoryChunk
struct MutableMemoryChunk
Undocumented in source.
Nbuff
struct Nbuff

Smart buffer. Usage scenario: You are reading bulk newline delimited lines (or any other way structured data) from TCP socket and process it as soon as possible. Every time you received something like:

NbuffChunk
struct NbuffChunk
Undocumented in source.
SmartPtr
struct SmartPtr(T)
Undocumented in source.
UniquePtr
struct UniquePtr(T)
Undocumented in source.

Meta