public final class TypeSizes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BOOL_SIZE |
static int |
BYTE_SIZE |
static int |
DOUBLE_SIZE |
static int |
FLOAT_SIZE |
static int |
INT_SIZE |
static int |
LONG_SIZE |
static int |
SHORT_SIZE |
static int |
UUID_SIZE |
Modifier and Type | Method and Description |
---|---|
static int |
encodedUTF8Length(java.lang.String st) |
static int |
sizeof(boolean value) |
static int |
sizeof(byte value) |
static int |
sizeof(double value) |
static int |
sizeof(float value) |
static int |
sizeof(int value) |
static int |
sizeof(long value) |
static int |
sizeof(short value) |
static int |
sizeof(java.lang.String value)
assumes UTF8
|
static int |
sizeof(java.util.UUID value) |
static int |
sizeofUnsignedVInt(long value) |
static int |
sizeofVInt(long value) |
static int |
sizeofWithLength(java.nio.ByteBuffer value) |
static int |
sizeofWithShortLength(java.nio.ByteBuffer value) |
static int |
sizeofWithVIntLength(java.nio.ByteBuffer value) |
public static final int BOOL_SIZE
public static final int BYTE_SIZE
public static final int SHORT_SIZE
public static final int INT_SIZE
public static final int LONG_SIZE
public static final int FLOAT_SIZE
public static final int DOUBLE_SIZE
public static final int UUID_SIZE
public static int sizeof(java.lang.String value)
public static int encodedUTF8Length(java.lang.String st)
public static int sizeofWithShortLength(java.nio.ByteBuffer value)
public static int sizeofWithLength(java.nio.ByteBuffer value)
public static int sizeofWithVIntLength(java.nio.ByteBuffer value)
public static int sizeof(boolean value)
public static int sizeof(byte value)
public static int sizeof(short value)
public static int sizeof(int value)
public static int sizeof(long value)
public static int sizeof(float value)
public static int sizeof(double value)
public static int sizeof(java.util.UUID value)
public static int sizeofVInt(long value)
public static int sizeofUnsignedVInt(long value)
Copyright © 2009-2022 The Apache Software Foundation