BinaryMarshaller to unmarshal parameters and results passed by
value.
BinaryOutput, BinaryMarshaller, JNIConfig.Builder#registerMarshaller(Class, BinaryMarshaller)
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| protected final int | |
| protected int | |
| private byte[] | |
| private char[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public abstract ByteBuffer | |
| public static BinaryInput | |
| public static BinaryInput | create(byte[] buffer, int length)
Creates a new buffer backed by a byte array only up to a given length. |
| public static BinaryInput | create(CCharPointer address, int length)
Creates a new buffer wrapping an off-heap memory segment starting at an |
| private void | |
| private static char | packChar(int b1, int b2)
Creates a Java |
| private static int | packInt(int b1, int b2, int b3, int b4)
Creates a Java |
| private static long | packLong(int b1, int b2, int b3, int b4, int b5, int b6, int b7, int b8)
Creates a Java |
| private static short | packShort(int b1, int b2)
Creates a Java |
| public abstract int | |
| public abstract void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final boolean | readBoolean()
Reads a single byte and returns |
| public final byte | |
| public final char | |
| public final double | |
| public final float | |
| public final int | |
| public final long | |
| public final short | |
| public final Object | Returns: The read value, such as a boxed Java primitive, aString, a null, or
an array of these types.Reads a single value, using the data type encoded in the marshalled data. |
| public final String |
| EOF | back to summary |
|---|---|
| private static final int EOF | |
| length | back to summary |
|---|---|
| protected final int length | |
| pos | back to summary |
|---|---|
| protected int pos | |
| tempEncodingByteBuffer | back to summary |
|---|---|
| private byte[] tempEncodingByteBuffer | |
| tempEncodingCharBuffer | back to summary |
|---|---|
| private char[] tempEncodingCharBuffer | |
| BinaryInput | back to summary |
|---|---|
| private BinaryInput(int length) | |
| asByteBuffer | back to summary |
|---|---|
| public abstract ByteBuffer asByteBuffer(int len) Returns a read only
| |
| create | back to summary |
|---|---|
| public static BinaryInput create(byte[] buffer) Creates a new buffer backed by a byte array. | |
| create | back to summary |
|---|---|
| public static BinaryInput create(byte[] buffer, int length) Creates a new buffer backed by a byte array only up to a given length. | |
| create | back to summary |
|---|---|
| public static BinaryInput create(CCharPointer address, int length) Creates a new buffer wrapping an off-heap memory segment starting at an | |
| ensureBufferSize | back to summary |
|---|---|
| private void ensureBufferSize(int len) | |
| packChar | back to summary |
|---|---|
| private static char packChar(int b1, int b2) Creates a Java | |
| packInt | back to summary |
|---|---|
| private static int packInt(int b1, int b2, int b3, int b4) Creates a Java | |
| packLong | back to summary |
|---|---|
| private static long packLong(int b1, int b2, int b3, int b4, int b5, int b6, int b7, int b8) Creates a Java | |
| packShort | back to summary |
|---|---|
| private static short packShort(int b1, int b2) Creates a Java | |
| read | back to summary |
|---|---|
| public abstract int read() Reads a single byte. The byte value is returned as an | |
| read | back to summary |
|---|---|
| public abstract void read(byte[] b, int off, int len) throws IndexOutOfBoundsException Reads
| |
| read | back to summary |
|---|---|
| public final void read(boolean[] b, int off, int len) Reads
| |
| read | back to summary |
|---|---|
| public final void read(short[] b, int off, int len) Reads
| |
| read | back to summary |
|---|---|
| public final void read(char[] b, int off, int len) Reads
| |
| read | back to summary |
|---|---|
| public final void read(int[] b, int off, int len) Reads
| |
| read | back to summary |
|---|---|
| public final void read(long[] b, int off, int len) Reads
| |
| read | back to summary |
|---|---|
| public final void read(float[] b, int off, int len) Reads
| |
| read | back to summary |
|---|---|
| public final void read(double[] b, int off, int len) Reads
| |
| readBoolean | back to summary |
|---|---|
| public final boolean readBoolean() throws IndexOutOfBoundsException Reads a single byte and returns
| |
| readByte | back to summary |
|---|---|
| public final byte readByte() throws IndexOutOfBoundsException Reads and returns a single byte.
| |
| readChar | back to summary |
|---|---|
| public final char readChar() throws IndexOutOfBoundsException Reads two bytes and returns a
| |
| readDouble | back to summary |
|---|---|
| public final double readDouble() throws IndexOutOfBoundsException Reads eight bytes and returns a
| |
| readFloat | back to summary |
|---|---|
| public final float readFloat() throws IndexOutOfBoundsException Reads four bytes and returns a
| |
| readInt | back to summary |
|---|---|
| public final int readInt() throws IndexOutOfBoundsException Reads four bytes and returns an
| |
| readLong | back to summary |
|---|---|
| public final long readLong() throws IndexOutOfBoundsException Reads eight bytes and returns a
| |
| readShort | back to summary |
|---|---|
| public final short readShort() throws IndexOutOfBoundsException Reads two bytes and returns a
| |
| readTypedValue | back to summary |
|---|---|
| public final Object readTypedValue() throws IndexOutOfBoundsException, IllegalArgumentException Reads a single value, using the data type encoded in the marshalled data.
| |
| readUTF | back to summary |
|---|---|
| public final String readUTF() throws IndexOutOfBoundsException, IllegalArgumentException Reads a string using a modified UTF-8 encoding in a machine-independent manner.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | asByteBuffer(int len)
Implements abstract org. Returns a read only |
| public int | |
| public void | read(byte[] b, int off, int len)
Implements abstract org. Reads |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| ByteArrayBinaryInput | back to summary |
|---|---|
| pack-priv ByteArrayBinaryInput(byte[] buffer) | |
| ByteArrayBinaryInput | back to summary |
|---|---|
| pack-priv ByteArrayBinaryInput(byte[] buffer, int length) | |
| asByteBuffer | back to summary |
|---|---|
| public ByteBuffer asByteBuffer(int len) Implements abstract org. Doc from org. Returns a read only
| |
| read | back to summary |
|---|---|
| public int read() Implements abstract org. Doc from org. Reads a single byte. The byte value is returned as an
| |
| read | back to summary |
|---|---|
| public void read(byte[] b, int off, int len) Implements abstract org. Doc from org. Reads
| |
| Modifier and Type | Field and Description |
|---|---|
| private final CCharPointer | |
| private static final int | BYTEBUFFER_COPY_TO_ARRAY_THRESHOLD
Represents the point at which the average cost of a JNI call exceeds the expense of an element by element copy. |
| private ByteBuffer | byteBufferView
ByteBuffer view of this |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | asByteBuffer(int len)
Implements abstract org. Returns a read only |
| public int | |
| public void | read(byte[] b, int off, int len)
Implements abstract org. Reads |
| address | back to summary |
|---|---|
| private final CCharPointer address | |
| BYTEBUFFER_COPY_TO_ARRAY_THRESHOLD | back to summary |
|---|---|
| private static final int BYTEBUFFER_COPY_TO_ARRAY_THRESHOLD Represents the point at which the average cost of a JNI call exceeds the expense of an
element by element copy. See | |
| byteBufferView | back to summary |
|---|---|
| private ByteBuffer byteBufferView ByteBuffer view of this | |
| CCharPointerInput | back to summary |
|---|---|
| pack-priv CCharPointerInput(CCharPointer address, int length) | |
| asByteBuffer | back to summary |
|---|---|
| public ByteBuffer asByteBuffer(int len) Implements abstract org. Doc from org. Returns a read only
| |
| read | back to summary |
|---|---|
| public int read() Implements abstract org. Doc from org. Reads a single byte. The byte value is returned as an
| |
| read | back to summary |
|---|---|
| public void read(byte[] b, int off, int len) Implements abstract org. Doc from org. Reads
| |