Top Description Constructors Methods
com.mysql.cj.util

public Class DataTypeUtil

extends Object
Class Inheritance

Utilities to manipulate internal data type formats.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static long

Returns:

long value
bitToLong
(byte[]
byte buffer
bytes
,
int
offset in buffer
offset
,
int
number of bytes to use
length
)

Interpret a BIT value as a long.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DataTypeUtilback to summary
public DataTypeUtil()

Method Detail

bitToLongback to summary
public static long bitToLong(byte[] bytes, int offset, int length)

Interpret a BIT value as a long.

Parameters
bytes:byte[]

byte buffer

offset:int

offset in buffer

length:int

number of bytes to use

Returns:long

long value