Skip to content

RawData.utf8

JoeStrout edited this page Apr 29, 2026 · 2 revisions

get UTF-8 string from the given byte offset (bytes=-1 reads to end)

Parameters

Parameter Default Value Note
offset 0
bytes -1

Return value

Condition Return Value
(always) number

Notes

Example

import "RawData"
data = new RawData
data.resize 16
data.setUtf8 0, "hello"
print data.utf8(0, 5)   // "hello"

Clone this wiki locally