Slice

Holds a pointer returned from leveldb, or passed to leveldb.

Leveldb memory is freed on destruction.

Destructor

~this
~this()

Calles free on leveldb raw memory

Members

Aliases

to
alias to = as

Get slice as a data type

Functions

opCast
inout(T) opCast()

Slice casting

Properties

as
auto as [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
cptr
const(char)* cptr [@property getter]

Get slice pointer

ok
bool ok [@property getter]

Test is slice is valid

ptr
inout(T) ptr [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
size_t size [@property getter]

length or size of slice

Static functions

make
auto make(T t)
Undocumented in source.
make
auto make(T t, size_t size, bool free)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta