s$ = GetMemString(id[, offset, length])
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.