Package com.mysql.cj.util
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 longbitToLong(byte[] bytes, int offset, int length)Interpret a BIT value as a long.
-
Constructor Details
-
DataTypeUtil
public DataTypeUtil()
-
-
Method Details
-
bitToLong
public static long bitToLong(byte[] bytes, int offset, int length)Interpret a BIT value as a long.- Parameters:
bytes- byte bufferoffset- offset in bufferlength- number of bytes to use- Returns:
- long value
-