public class MemoryUtil extends Object
Modifier and Type | Field and Description |
---|---|
static ByteBuffer |
EMPTY_BYTE_BUFFER |
Constructor and Description |
---|
MemoryUtil() |
Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
allocate(int cap) |
static ByteBuffer |
copyOf(ByteBuffer buf,
int newCap) |
static BigDecimal |
getDecimal128(ByteBuffer data,
int offset,
int scale) |
static BigDecimal |
getDecimal256(ByteBuffer data,
int offset,
int scale) |
static BigDecimal |
getDecimal32(ByteBuffer data,
int offset,
int scale) |
static BigDecimal |
getDecimal64(ByteBuffer data,
int offset,
int scale) |
static void |
readFully(ByteBuffer dst,
CodecDataInput cdi,
int length) |
public static final ByteBuffer EMPTY_BYTE_BUFFER
public static BigDecimal getDecimal32(ByteBuffer data, int offset, int scale)
public static BigDecimal getDecimal64(ByteBuffer data, int offset, int scale)
public static BigDecimal getDecimal128(ByteBuffer data, int offset, int scale)
public static BigDecimal getDecimal256(ByteBuffer data, int offset, int scale)
public static ByteBuffer allocate(int cap)
public static ByteBuffer copyOf(ByteBuffer buf, int newCap)
public static void readFully(ByteBuffer dst, CodecDataInput cdi, int length)
Copyright © 2024 PingCAP. All rights reserved.