public final class DataUtils extends Object
Created by Pepijn on 9-3-2017.
| Modifier and Type | Method and Description |
|---|---|
static long |
readUnsignedInt(DataInput in)
Read an unsigned 32-bit integer from a data stream.
|
static long[][] |
unpackDataArray(Object data,
int wordSize,
int columnCount)
Decode data that consists of a matrix of equally sized numbers packed
into a one dimensional array.
|
public static long readUnsignedInt(DataInput in) throws IOException
in - The stream to read from.IOException - If the stream throws an IOException
while reading the bytes.public static long[][] unpackDataArray(Object data, int wordSize, int columnCount)
data - The data array to unpack.wordSize - The word size in bits into which the numbers have been
packed.columnCount - The number of words per line or row of the original
matrix.Copyright © 2011–2025 pepsoft.org. All rights reserved.