protected static final class Bytes.ConverterHolder.UnsafeConverter extends Bytes.Converter
| Modifier and Type | Field and Description |
|---|---|
(package private) static sun.misc.Unsafe |
theUnsafe |
| Constructor and Description |
|---|
UnsafeConverter() |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
putInt(byte[] bytes,
int offset,
int val) |
(package private) int |
putLong(byte[] bytes,
int offset,
long val) |
(package private) int |
putShort(byte[] bytes,
int offset,
short val) |
(package private) int |
toInt(byte[] bytes,
int offset,
int length) |
(package private) long |
toLong(byte[] bytes,
int offset,
int length) |
(package private) short |
toShort(byte[] bytes,
int offset,
int length) |
static final sun.misc.Unsafe theUnsafe
public UnsafeConverter()
long toLong(byte[] bytes, int offset, int length)
toLong in class Bytes.Converterint putLong(byte[] bytes, int offset, long val)
putLong in class Bytes.Converterint toInt(byte[] bytes, int offset, int length)
toInt in class Bytes.Converterint putInt(byte[] bytes, int offset, int val)
putInt in class Bytes.Convertershort toShort(byte[] bytes, int offset, int length)
toShort in class Bytes.Converterint putShort(byte[] bytes, int offset, short val)
putShort in class Bytes.ConverterCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.