Class IntegerPackingEncoding

java.lang.Object
org.rcsb.cif.binary.encoding.IntegerPackingEncoding
All Implemented Interfaces:
Encoding<Int32Array,​IntArray>

public class IntegerPackingEncoding
extends Object
implements Encoding<Int32Array,​IntArray>

Stores a Int32Array using 8- or 16-bit values. Includes the size of the input array for easier decoding. The encoding is more effective when only unsigned values are provided.

 IntegerPacking {
     kind = "IntegerPacking"
     byteCount: number
     srcSize: number
     isUnsigned: boolean
 }
 Example
 [1, 2, -3, 128]
 ---IntegerPacking--->
 { byteCount = 1, srcSize = 4, isUnsigned = false } [1, 2, -3, 127, 1]