Interface NumberArray<D>

Type Parameters:
D - the type of number array wrapped (int[] or double[])
All Superinterfaces:
EncodedData<D>
All Known Subinterfaces:
FloatArray, IntArray, SignedIntArray<T>, UnsignedIntArray
All Known Implementing Classes:
Float32Array, Float64Array, Int16Array, Int32Array, Int8Array, Uint16Array, Uint32Array, Uint8Array

public interface NumberArray<D>
extends EncodedData<D>
An array of numbers.
  • Method Summary

    Modifier and Type Method Description
    ByteArray encode()
    Encode this array of numbers directly as binary data (useful for single values that won't benefit from more elaborate encoding chains).
    int getNumberOfBytes()
    The number of bytes used in this representation to describe a single value (e.g.
    int getType()
    Report the type of this number array.
    byte[] toByteArray()
    Converts this number array to its binary representation.

    Methods inherited from interface org.rcsb.cif.binary.data.EncodedData

    decode, getData, getEncoding, hasNextDecodingStep, length, setEncoding