CString wraps a raw C string pointer (const char*) and provides safe read access.
Example
Constructor
| Parameter | Type | Default | Description |
|---|---|---|---|
ptr | number | — | Memory address of the C string |
byteOffset | number | 0 | Skip N bytes before reading |
byteLength | number | auto-detect (null-terminated) | Explicit read length |
Properties
length
Methods
toString()
Null Pointers
Passing0 is safe and returns an empty string: