Class ByteUtils

java.lang.Object
com.clickhouse.data.ByteUtils

public final class ByteUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(byte[] a, int aFromIndex, int aToIndex, byte[] b, int bFromIndex, int bToIndex)
     
    float
    getFloat32(byte[] bytes, int offset)
     
    double
    getFloat64(byte[] bytes, int offset)
     
    short
    getInt16(byte[] bytes, int offset)
     
    int
    getInt32(byte[] bytes, int offset)
     
    long
    getInt64(byte[] bytes, int offset)
     
    byte
    getInt8(byte[] bytes, int offset)
     
    void
    setFloat32(byte[] bytes, int offset, float value)
     
    void
    setFloat64(byte[] bytes, int offset, double value)
     
    void
    setInt16(byte[] bytes, int offset, short value)
     
    void
    setInt32(byte[] bytes, int offset, int value)
     
    void
    setInt64(byte[] bytes, int offset, long value)
     
    void
    setInt8(byte[] bytes, int offset, byte value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)