ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:packbytes

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
functions:packbytes [2017/03/19 17:59]
korshun
functions:packbytes [2017/04/17 20:47]
korshun
Line 4: Line 4:
  
 ===== Description ===== ===== Description =====
-Packs four bytes into one integer and returns the result. The bytes must be in [0, 255] range.+Packs four bytes into one integer and returns the result. The bytes must be in the [0, 255] range.
  
-The packed values can be retrieved using [[UnpackByte]].+The packed values can be retrieved using [[UnpackByteX]].
  
 <note tip> <note tip>
Line 13: Line 13:
 You can also pack shorts (-32768 to 32767) using [[PackShorts]]. You can also pack shorts (-32768 to 32767) using [[PackShorts]].
  
-If you need more extreme packing, you should code the bit packing yourself.</note>+If you need more extreme packing, you should code it yourself.</note>
  
 ===== Examples ===== ===== Examples =====
Line 41: Line 41:
 } }
 </code> </code>
 +
functions/packbytes.txt ยท Last modified: 2017/04/17 20:47 by korshun