Function: writeUtf8()
ts
function writeUtf8(cursor, value): void;Defined in: cursor/writeUtf8.ts:19
Writes text as UTF-8, with no terminator.
Parameters
cursor
The cursor to write to. The function moves the cursor past the bytes.
value
string
The text to write.
Returns
void
Throws
RangeError if value is not a string. The cursor does not move.
Example
ts
const cursor = createIsoBoxWriteCursor()
writeTerminatedUtf8(cursor, 'a') // writes 61 00