WriteShort -- write a short to a file (V2.0)
WriteShort(id, short[, le])
This function writes an unsigned short integer to the file specified by id at the current file cursor position which you can modify by using the Seek() command. A short integer will use 2 bytes of disk space.

The value to be written to the file can range from 0 to 65535. If you need signed values, use WriteInt().

By default, this function stores the value in big endian format (most significant byte first). Starting with Hollywood 6.0 you can use the optional argument le to explicitly request this function to use the little endian format instead.

file to write to
short integer value to write to the file
optional: True to write bytes in little endian order, False for big endian order (defaults to False) (V6.0)

Show TOC