binarySlice
Extract a subsequence of bytes from binary data.
binary(required): source binarystart(required): start byte offset (0-based)end(required): end byte offset (exclusive)
utlx
let data = toBinary("Hello World", "UTF-8")
{
first5: binaryToString(binarySlice(data, 0, 5), "UTF-8"),
rest: binaryToString(binarySlice(data, 6, 11), "UTF-8")
}
// Output: {"first5": "Hello", "rest": "World"}