SetMemblockShort

Description

Writes a 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 writing 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 given value will be truncated to the range -32768 and 32767.

Definition

SetMemblockShort( memID, offset, value )

Parameters