readString
fn
string 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
data | The byte array to read from. |
offset | The 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.