Struct stringz

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

struct stringz;

Constructors

NameDescription
this (raw) Wraps the given pointer in the struct. Note that it retains a copy of the pointer.

Methods

NameDescription
borrow () Borrows a slice of the pointer up to (but not including) the zero terminator.
ptr () Returns the original raw pointer back out.