dataBuffer

This is a slightly simpler way to create a DataBuffer instance that uses type deduction.

dataBuffer
(
T
)
(
T[] tmpbuf
)

Parameters

tmpbuf T[]

the initial buffer to use

Return Value

Type: auto

an instance of DataBuffer

Examples

ubyte[10] tmpbuf = void;
auto sb = dataBuffer(tmpbuf);
scope(exit) sp.free();

Meta