| Modifier and Type | Field and Description |
|---|---|
| public static final int | CONSTANT_POOL_UTF8_MAX_BYTES
Maximum number of bytes allowed for a Modified UTF-8 encoded string
in a |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | isValidLengthInConstantPool(String
input string str)Checks whether an input String can be encoded in a
|
| public static int | |
| public static long | |
| public static long | utfLen(String
input string str, int the number of non-zero ascii characters in the
prefix calculated by JLA.countNonZeroAscii(str) countNonZeroAscii)Calculate the encoded length of trailing parts of an input String,
after |
| CONSTANT_POOL_UTF8_MAX_BYTES | back to summary |
|---|---|
| public static final int CONSTANT_POOL_UTF8_MAX_BYTES Maximum number of bytes allowed for a Modified UTF-8 encoded string
in a | |
| ModifiedUtf | back to summary |
|---|---|
| private ModifiedUtf() | |
| isValidLengthInConstantPool | back to summary |
|---|---|
| public static boolean isValidLengthInConstantPool(String str) Checks whether an input String can be encoded in a
| |
| putChar | back to summary |
|---|---|
| public static int putChar(byte[] buf, int offset, char c) Writes a char to the pre-sized modified UTF buffer.
| |
| utfLen | back to summary |
|---|---|
| public static long utfLen(String str) Calculate the encoded length of an input String.
For many workloads that have fast paths for ASCII-only prefixes,
| |
| utfLen | back to summary |
|---|---|
| public static long utfLen(String str, int countNonZeroAscii) Calculate the encoded length of trailing parts of an input String,
after
| |