Package com.clickhouse.data
Class ByteUtils
java.lang.Object
com.clickhouse.data.ByteUtils
-
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) floatgetFloat32(byte[] bytes, int offset) doublegetFloat64(byte[] bytes, int offset) shortgetInt16(byte[] bytes, int offset) intgetInt32(byte[] bytes, int offset) longgetInt64(byte[] bytes, int offset) bytegetInt8(byte[] bytes, int offset) voidsetFloat32(byte[] bytes, int offset, float value) voidsetFloat64(byte[] bytes, int offset, double value) voidsetInt16(byte[] bytes, int offset, short value) voidsetInt32(byte[] bytes, int offset, int value) voidsetInt64(byte[] bytes, int offset, long value) voidsetInt8(byte[] bytes, int offset, byte value)
-
Method Details
-
equals
public boolean equals(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex) -
getInt8
public byte getInt8(byte[] bytes, int offset) -
setInt8
public void setInt8(byte[] bytes, int offset, byte value) -
getInt16
public short getInt16(byte[] bytes, int offset) -
setInt16
public void setInt16(byte[] bytes, int offset, short value) -
getInt32
public int getInt32(byte[] bytes, int offset) -
setInt32
public void setInt32(byte[] bytes, int offset, int value) -
getInt64
public long getInt64(byte[] bytes, int offset) -
setInt64
public void setInt64(byte[] bytes, int offset, long value) -
getFloat32
public float getFloat32(byte[] bytes, int offset) -
setFloat32
public void setFloat32(byte[] bytes, int offset, float value) -
getFloat64
public double getFloat64(byte[] bytes, int offset) -
setFloat64
public void setFloat64(byte[] bytes, int offset, double value)
-