Class IntegerPackingCodec


  • public class IntegerPackingCodec
    extends Object

    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]