Skip to main content
CString wraps a raw C string pointer (const char*) and provides safe read access.

Example

Constructor

Properties

length

Returns the length of the C string in characters.

Methods

toString()

Reads the C string and returns it as a TypeScript string.

Null Pointers

Passing 0 is safe and returns an empty string: