GetMemblockShort

Description

Returns the short (2 byte) value at the given offset. The offset must be less than the size of the memblock. The first value is at offset 0. For best performance the offset should be a multiple of 2 because reading short values that are not aligned to 2 byte boundaries incurs a hardware performance penalty. Short values are stored in little endian format so writing a short of 23 at offset 0 and then reading it back in bytes would return the byte at offset 0 as 23 and the byte at offset 1 as 0. The returned value will be a signed short between -32768 and 32767.

Definition

integer GetMemblockShort( memID, offset )

Parameters