stringz

A wrapper around a const(char)* to indicate that it is a zero-terminated C string.

Constructors

this
this(const(char)* raw)

Wraps the given pointer in the struct. Note that it retains a copy of the pointer.

Members

Functions

borrow
const(char)[] borrow()

Borrows a slice of the pointer up to (but not including) the zero terminator.

ptr
const(char)* ptr()

Returns the original raw pointer back out.

Meta