SetMemblockShort - AGK Help

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. The offset must be a multiple of 2 as short values cannot be written across 2 byte boundaries. 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