ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:unpackshort

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
functions:unpackshort [2017/03/19 16:04] korshunfunctions:unpackshort [2017/04/17 17:47] (current) – removed korshun
Line 1: Line 1:
-====== UnpackShortX ====== 
-{{tag>packing}} 
-  * ''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