Class ByteArrayEncoding<T extends NumberArray<?>>

java.lang.Object
org.rcsb.cif.binary.encoding.ByteArrayEncoding<T>
All Implemented Interfaces:
Encoding<T,​ByteArray>

public abstract class ByteArrayEncoding<T extends NumberArray<?>>
extends Object
implements Encoding<T,​ByteArray>

Encodes an array of numbers of specified types as raw bytes. E.g. values in the range from 0...255 (i.e. an Uint8Array) can be efficiently represented by single byte rather than int values which would require four bytes.

 ByteArray {
     kind = "ByteArray"
     type: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Float32Array | Float64Array
 }