ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:unpackshortx

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/unpackshortx.txt · Last modified: 2017/04/17 20:48 by korshun