public abstract class CharSequenceAccess extends Access<CharSequence>
| Modifier and Type | Method and Description |
|---|---|
int |
getByte(CharSequence input,
long offset)
Reads a single byte at the given
offset in the byte sequence represented by the given
input, returned widened to int. |
int |
getInt(CharSequence input,
long offset)
Reads
[offset, offset + 3] bytes of the byte sequence represented by the given
input as a single int value. |
protected static long |
getLong(CharSequence input,
long offset,
int char0Off,
int char1Off,
int char2Off,
int char3Off,
int char4Off,
int delta) |
int |
getShort(CharSequence input,
long offset)
Reads
[offset, offset + 1] bytes of the byte sequence represented by the given
input as a single short value, returned widened to int. |
protected static int |
getUnsignedByte(CharSequence input,
long offset,
int shift) |
protected static long |
getUnsignedInt(CharSequence input,
long offset,
int char0Off,
int char1Off,
int char2Off,
int delta) |
protected static char |
getUnsignedShort(CharSequence input,
long offset,
int char1Off,
int delta) |
byteOrder, byteOrder, getLong, getUnsignedByte, getUnsignedInt, getUnsignedShort, i16, i32, i64, i8, reverseAccess, toByteBuffer, toCharSequence, toNativeCharSequence, u16, u32, u8, unsafeprotected static long getLong(CharSequence input, long offset, int char0Off, int char1Off, int char2Off, int char3Off, int char4Off, int delta)
protected static long getUnsignedInt(CharSequence input, long offset, int char0Off, int char1Off, int char2Off, int delta)
protected static char getUnsignedShort(CharSequence input, long offset, int char1Off, int delta)
protected static int getUnsignedByte(CharSequence input, long offset, int shift)
public int getInt(CharSequence input, long offset)
Access[offset, offset + 3] bytes of the byte sequence represented by the given
input as a single int value.getInt in class Access<CharSequence>input - the object to accessoffset - offset to the first byte to read within the byte sequence represented
by the given objectint value, in the expected
orderpublic int getShort(CharSequence input, long offset)
Access[offset, offset + 1] bytes of the byte sequence represented by the given
input as a single short value, returned widened to int.getShort in class Access<CharSequence>input - the object to accessoffset - offset to the first byte to read within the byte sequence represented
by the given objectshort value, in the expected
order, widened to intpublic int getByte(CharSequence input, long offset)
Accessoffset in the byte sequence represented by the given
input, returned widened to int.getByte in class Access<CharSequence>input - the object to accessoffset - offset to the byte to read within the byte sequence represented
by the given objectoffset, widened to intCopyright © 2014–2022. All rights reserved.