Name
GetMemString -- get string from memory block (V7.1)
Synopsis
s$ = GetMemString(id[, offset, length])
Function
This function returns length bytes starting at offset from the memory block specified by id. Both the offset and length parameters must be specified in bytes. If omitted, offset defaults to 0 (i.e. the beginning of the memory block) and length also defaults to 0 which means all remaining bytes starting from the specified offset are returned.

Note that since Hollywood strings can also contain raw binary data the string that is returned by GetMemString() isn't necessarily a valid UTF-8 string but contains the raw binary data copied from the specified memory block.

Inputs
id
memory block to use
offset
optional: offset in bytes defining where to start fetching bytes (defaults to 0)
length
optional: number of bytes to fetch or 0 to fetch all remaining bytes in the memory block (defaults to 0)
Results
s$
contents of the specified memory block range

Show TOC