Class DataTypeUtil

java.lang.Object
com.mysql.cj.util.DataTypeUtil

public class DataTypeUtil
extends java.lang.Object
Utilities to manipulate internal data type formats.
  • Constructor Summary

    Constructors 
    Constructor Description
    DataTypeUtil()  
  • Method Summary

    Modifier and Type Method Description
    static long bitToLong​(byte[] bytes, int offset, int length)
    Interpret a BIT value as a long.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • bitToLong

      public static long bitToLong​(byte[] bytes, int offset, int length)
      Interpret a BIT value as a long.
      Parameters:
      bytes - byte buffer
      offset - offset in buffer
      length - number of bytes to use
      Returns:
      long value