| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private static final long | |
| private static final long | |
| private static final JavaLangAccess | |
| private static final long | |
| private static final long | |
| private static final long | |
| private static final long | |
| private static final ScopedMemoryAccess |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static int | |
| public static int | copyBytes(String string, MemorySegment segment, Charset charset, long offset, int srcIndex, int numChars)
|
| public static void | |
| private static String | |
| private static boolean | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| private static IndexOutOfBoundsException | |
| public static String | |
| public static String | |
| private static String | |
| public static String | |
| private static String | |
| private static String | |
| private static int | requireWithinStringSize(long size, AbstractMemorySegmentImpl segment, long fromOffset, long toOffset)
|
| private static IllegalArgumentException | |
| public static int | Returns: the index of the first zero byte beginning at the providedfromOffset to the encountering of a zero byte in the provided
segment checking bytes before the toOffsetto examine segment, final long from where examination shall begin (inclusive) fromOffset, final long to where examination shall end (exclusive) toOffset)Returns the index of the first zero byte beginning at the provided
|
| public static int | |
| public static int | |
| public static void | |
| private static void | |
| private static void | |
| private static void |
| HIMAGIC_FOR_BYTES | back to summary |
|---|---|
| private static final long HIMAGIC_FOR_BYTES | |
| HIMAGIC_FOR_INTS | back to summary |
|---|---|
| private static final long HIMAGIC_FOR_INTS | |
| HIMAGIC_FOR_SHORTS | back to summary |
|---|---|
| private static final long HIMAGIC_FOR_SHORTS | |
| JAVA_LANG_ACCESS | back to summary |
|---|---|
| private static final JavaLangAccess JAVA_LANG_ACCESS | |
| LOMAGIC_FOR_BYTES | back to summary |
|---|---|
| private static final long LOMAGIC_FOR_BYTES | |
| LOMAGIC_FOR_INTS | back to summary |
|---|---|
| private static final long LOMAGIC_FOR_INTS | |
| LOMAGIC_FOR_SHORTS | back to summary |
|---|---|
| private static final long LOMAGIC_FOR_SHORTS | |
| LONG_MASK | back to summary |
|---|---|
| private static final long LONG_MASK | |
| SCOPED_MEMORY_ACCESS | back to summary |
|---|---|
| private static final ScopedMemoryAccess SCOPED_MEMORY_ACCESS | |
| StringSupport | back to summary |
|---|---|
| private StringSupport() | |
| bytesCompatible | back to summary |
|---|---|
| public static boolean bytesCompatible(String string, Charset charset, int srcIndex, int numChars) | |
| copyBytes | back to summary |
|---|---|
| public static int copyBytes(String string, MemorySegment segment, Charset charset, long offset) | |
| copyBytes | back to summary |
|---|---|
| public static int copyBytes(String string, MemorySegment segment, Charset charset, long offset, int srcIndex, int numChars) | |
| copyToSegmentRaw | back to summary |
|---|---|
| public static void copyToSegmentRaw(String string, MemorySegment segment, long offset, int srcIndex, int srcLength) | |
| exceptionInfo | back to summary |
|---|---|
| private static String exceptionInfo(AbstractMemorySegmentImpl segment, long fromOffset, long toOffset) | |
| mightContainZeroByte | back to summary |
|---|---|
| private static boolean mightContainZeroByte(long l) | |
| mightContainZeroInt | back to summary |
|---|---|
| pack-priv static boolean mightContainZeroInt(long l) | |
| mightContainZeroShort | back to summary |
|---|---|
| pack-priv static boolean mightContainZeroShort(long l) | |
| nullNotFound | back to summary |
|---|---|
| private static IndexOutOfBoundsException nullNotFound(AbstractMemorySegmentImpl segment, long fromOffset, long toOffset) | |
| read | back to summary |
|---|---|
public static String read(AbstractMemorySegmentImpl segment, long offset, Charset charset)
| |
| read | back to summary |
|---|---|
public static String read(AbstractMemorySegmentImpl segment, long offset, Charset charset, long length)
| |
| readByte | back to summary |
|---|---|
private static String readByte(AbstractMemorySegmentImpl segment, long offset, Charset charset)
| |
| readBytes | back to summary |
|---|---|
public static String readBytes(AbstractMemorySegmentImpl segment, long offset, Charset charset, long length)
| |
| readInt | back to summary |
|---|---|
private static String readInt(AbstractMemorySegmentImpl segment, long offset, Charset charset)
| |
| readShort | back to summary |
|---|---|
private static String readShort(AbstractMemorySegmentImpl segment, long offset, Charset charset)
| |
| requireWithinStringSize | back to summary |
|---|---|
| private static int requireWithinStringSize(long size, AbstractMemorySegmentImpl segment, long fromOffset, long toOffset) | |
| stringTooLarge | back to summary |
|---|---|
| private static IllegalArgumentException stringTooLarge(AbstractMemorySegmentImpl segment, long fromOffset, long toOffset) | |
| strlenByte | back to summary |
|---|---|
| public static int strlenByte(final AbstractMemorySegmentImpl segment, final long fromOffset, final long toOffset) Returns the index of the first zero byte beginning at the provided
The method is using a heuristic method to determine if a long word contains a zero byte. The method might have false positives but never false negatives. This method is inspired by the `glibc/string/strlen.c` implementation
| |
| strlenInt | back to summary |
|---|---|
public static int strlenInt(final AbstractMemorySegmentImpl segment, final long fromOffset, final long toOffset)
| |
| strlenShort | back to summary |
|---|---|
public static int strlenShort(final AbstractMemorySegmentImpl segment, final long fromOffset, final long toOffset)
| |
| write | back to summary |
|---|---|
public static void write(AbstractMemorySegmentImpl segment, long offset, Charset charset, String string)
| |
| writeByte | back to summary |
|---|---|
private static void writeByte(AbstractMemorySegmentImpl segment, long offset, Charset charset, String string)
| |
| writeInt | back to summary |
|---|---|
private static void writeInt(AbstractMemorySegmentImpl segment, long offset, Charset charset, String string)
| |
| writeShort | back to summary |
|---|---|
private static void writeShort(AbstractMemorySegmentImpl segment, long offset, Charset charset, String string)
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final StringSupport. | |
| public static final StringSupport. | |
| public static final StringSupport. | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StringSupport. | |
| public int | |
| public static StringSupport. | |
| public static StringSupport. |
| DOUBLE_BYTE | back to summary |
|---|---|
| public static final StringSupport. | |
| QUAD_BYTE | back to summary |
|---|---|
| public static final StringSupport. | |
| SINGLE_BYTE | back to summary |
|---|---|
| public static final StringSupport. | |
| terminatorCharSize | back to summary |
|---|---|
| pack-priv final int terminatorCharSize | |
| CharsetKind | back to summary |
|---|---|
| private CharsetKind(int terminatorCharSize) | |
| of | back to summary |
|---|---|
| public static StringSupport. | |
| terminatorCharSize | back to summary |
|---|---|
| public int terminatorCharSize() | |
| valueOf | back to summary |
|---|---|
| public static StringSupport. | |
| values | back to summary |
|---|---|
| public static StringSupport. | |