Skip to content

RawData.short

JoeStrout edited this page Apr 29, 2026 · 2 revisions

get signed 16-bit integer (-32768 to 32767) at the given byte offset

Parameters

Parameter Default Value Note
offset 0

Return value

Condition Return Value
(always) number

Notes

Example

import "RawData"
data = new RawData
data.resize 4
data.setShort 0, -500
print data.short(0)   // -500

Clone this wiki locally