Struct CharzBuffer
Alternative for toStringz
struct CharzBuffer;
Constructors
| Name | Description |
|---|---|
this
(data)
|
Copies data into the CharzBuffer, allocating a new one if needed, and zero-terminates it.
|
Methods
| Name | Description |
|---|---|
copyInto
(r)
|
Copies it into a static array of chars |
length
()
|
Length of the string, excluding the zero terminator. |
slice
()
|
Returns the slice of the internal buffer, excluding the zero terminator (though there is one present right off the end of the slice). You must assume its lifetime is less than that of the CharzBuffer. |
History
Added March 18, 2023 (dub v11.0)