Struct stringz
A wrapper around a const(char)* to indicate that it is a zero-terminated C string.
struct stringz;
Constructors
| Name | Description |
|---|---|
this
(raw)
|
Wraps the given pointer in the struct. Note that it retains a copy of the pointer. |
Methods
| Name | Description |
|---|---|
borrow
()
|
Borrows a slice of the pointer up to (but not including) the zero terminator. |
ptr
()
|
Returns the original raw pointer back out. |