t = MemToTable(id, type[, table])
typeargument specifies the data type of the elements that should be read from the memory block and stored inside a table. This can be either
#FLOAT(4 bytes), or
table argument can be used to set additional parameters for
the operation. The following table fields are currently recognized:
Itemsto 4, 16 bytes will be read from the memory block. Defaults to all items that are in the memory block.
MemToTable()should start to read elements. Defaults to 0 which means read from the beginning of the memory block.
MemToTable()will treat all elements of type
#INTEGERas signed values. Defaults to
MemToTable()will switch byte order for all multi-byte data types. This can be useful if you need to convert between big and little endian values. Defaults to
To convert a table back into a memory block, use the TableToMem() function. See TableToMem for details.
AllocMem(1, 26) For Local k = 0 To 25 Do Poke(1, k, 'A' + k, #BYTE) Local t = MemToTable(1, #BYTE) For Local k = 0 To 25 Do Print(Chr(t[k]))This prints the alphabet from a memory block source.