readString

fnstring readString(const(ubyte)[] data, size_t offset)

Read a null-terminated string from a byte array.

This function reads a null-terminated string from the specified offset.

Parameters

dataThe byte array to read from.
offsetThe offset in bytes to start reading from.

Returns

The null-terminated string as a D string.

Throws

Exception if offset is out of bounds or no null terminator found.