MemoryPointerStringIO extension

on

Methods

readStringArray(int count) → List<String>

Available on MemoryPointer<RPointer<RChar>>, provided by the MemoryPointerStringIO extension

Reads count C strings from a char**-style pointer (this pointer points at an array of char* pointers, each read and decoded).
writeStringArray(List<String> strings, [List<int>? slotSizes]) → void

Available on MemoryPointer<RPointer<RChar>>, provided by the MemoryPointerStringIO extension

Writes strings into this pre-allocated char**-sized buffer. Both the outer array (strings.length pointer slots) and each inner char* target buffer must already exist. [slotSizesi] is the real allocated byte capacity of slot i's buffer (bytes available, terminator included), if not provided, string's length is used instead.