public final class BitSizeOfCalculator
extends java.lang.Object
Constructor and Description |
---|
BitSizeOfCalculator() |
Modifier and Type | Method and Description |
---|---|
static int |
getBitSizeOfBitBuffer(BitBuffer bitBuffer)
Gets the bit size of bit buffer which is stored in bit stream.
|
static int |
getBitSizeOfBytes(byte[] value)
Gets the bit size of Zserio bytes value which is stored in bit stream.
|
static int |
getBitSizeOfString(java.lang.String value)
Gets the bit size of Zserio string value which is stored in bit stream.
|
static int |
getBitSizeOfVarInt(long value)
Gets the bit size of varint value which is stored in bit stream.
|
static int |
getBitSizeOfVarInt16(short value)
Gets the bit size of varint16 value which is stored in bit stream.
|
static int |
getBitSizeOfVarInt32(int value)
Gets the bit size of varint32 value which is stored in bit stream.
|
static int |
getBitSizeOfVarInt64(long value)
Gets the bit size of varint64 value which is stored in bit stream.
|
static int |
getBitSizeOfVarSize(int value)
Gets the bit size of varsize value which is stored in bit stream.
|
static int |
getBitSizeOfVarUInt(java.math.BigInteger value)
Gets the bit size of varuint value which is stored in bit stream.
|
static int |
getBitSizeOfVarUInt16(short value)
Gets the bit size of varuint16 value which is stored in bit stream.
|
static int |
getBitSizeOfVarUInt32(int value)
Gets the bit size of varuint32 value which is stored in bit stream.
|
static int |
getBitSizeOfVarUInt64(long value)
Gets the bit size of varuint64 value which is stored in bit stream.
|
public static int getBitSizeOfVarInt16(short value)
value
- varint16 value for calculation.public static int getBitSizeOfVarInt32(int value)
value
- varint32 value for calculation.public static int getBitSizeOfVarInt64(long value)
value
- varint64 value for calculation.public static int getBitSizeOfVarUInt16(short value)
value
- varuint16 value for calculation.public static int getBitSizeOfVarUInt32(int value)
value
- varuint32 value for calculation.public static int getBitSizeOfVarUInt64(long value)
value
- varuint64 value for calculation.public static int getBitSizeOfVarInt(long value)
value
- varint value for calculation.public static int getBitSizeOfVarUInt(java.math.BigInteger value)
value
- varuint value for calculation.public static int getBitSizeOfVarSize(int value)
value
- varsize value for calculation.public static int getBitSizeOfBytes(byte[] value)
value
- Zserio bytes value for calculation.public static int getBitSizeOfString(java.lang.String value)
value
- Zserio string value for calculation.public static int getBitSizeOfBitBuffer(BitBuffer bitBuffer)
bitBuffer
- Bit buffer for calculation.Last updated 2024-12-05 10:34:50