Class IntegerPackingEncoding

    • Constructor Detail

      • IntegerPackingEncoding

        public IntegerPackingEncoding()
      • IntegerPackingEncoding

        public IntegerPackingEncoding​(int byteCount,
                                      boolean isUnsigned,
                                      int srcSize)
      • IntegerPackingEncoding

        public IntegerPackingEncoding​(Map<String,​Object> encoding)
    • Method Detail

      • getByteCount

        public int getByteCount()
      • isUnsigned

        public boolean isUnsigned()
      • getSrcSize

        public int getSrcSize()
      • setByteCount

        public void setByteCount​(int byteCount)
      • setUnsigned

        public void setUnsigned​(boolean unsigned)
      • setSrcSize

        public void setSrcSize​(int srcSize)
      • getKind

        public String getKind()
        Description copied from interface: Encoding
        The name of this encoding. Used for serialization and to retrieve the necessary Codec implementations.
        Specified by:
        getKind in interface Encoding<IntArray>
        Returns:
        a String representing the name of this encoding
      • decode

        public Int32Array decode​(IntArray current)
        Description copied from interface: Encoding
        Let this Encoding work its magic and decode some data.
        Specified by:
        decode in interface Encoding<IntArray>
        Parameters:
        current - the container to decode
        Returns:
        the decoded information