OutBuffer.extractSlice

Extract the data as a slice and take ownership of it.

When true is passed as an argument, this function behaves like dmd.utils.toDString(thisbuffer.extractChars()).

struct OutBuffer
extern (D) pure nothrow
char[]
extractSlice
(
bool nullTerminate = false
)

Parameters

nullTerminate bool

When true, the data will be null terminated. This is useful to call C functions or store the result in Strings. Defaults to false.

Meta