ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:unpackshort

This is an old revision of the document!


Table of Contents

UnpackShortX

  • int UnpackShort1(int packed)
  • int UnpackShort2(int packed)

Description

Return the first and second two bytes respectively from the integer. The result is interpreted as a signed short (-32768 to 32767).

Intended to extract values packed with PackShorts.

Examples

See PackShorts for examples.

functions/unpackshort.1489939471.txt.gz ยท Last modified: by korshun