Package org.apache.sysds.runtime.io.hdf5
Class Utils
- java.lang.Object
-
- org.apache.sysds.runtime.io.hdf5.Utils
-
public final class Utils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intbitsToInt(BitSet bits, int start, int length)static ByteBuffercreateSubBuffer(ByteBuffer source, int length)static intreadBytesAsUnsignedInt(ByteBuffer buffer, int length)static longreadBytesAsUnsignedLong(ByteBuffer buffer, int length)static StringreadUntilNull(ByteBuffer buffer)static voidseekBufferToNextMultipleOfEight(ByteBuffer bb)
-
-
-
Method Detail
-
readUntilNull
public static String readUntilNull(ByteBuffer buffer)
-
seekBufferToNextMultipleOfEight
public static void seekBufferToNextMultipleOfEight(ByteBuffer bb)
-
readBytesAsUnsignedInt
public static int readBytesAsUnsignedInt(ByteBuffer buffer, int length)
-
readBytesAsUnsignedLong
public static long readBytesAsUnsignedLong(ByteBuffer buffer, int length)
-
createSubBuffer
public static ByteBuffer createSubBuffer(ByteBuffer source, int length)
-
bitsToInt
public static int bitsToInt(BitSet bits, int start, int length)
-
-