Class ByteBufferDataInput
java.lang.Object
com.oracle.truffle.api.bytecode.serialization.ByteBufferDataInput
- All Implemented Interfaces:
DataInput
A
DataInput backed by a ByteBuffer.- Since:
- 25.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintposition()Returns the position in the underlying byte buffer.booleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) intreadInt()readLine()Deprecated.longreadLong()shortintintreadUTF()intskipBytes(int n)
-
Method Details
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readLine
Deprecated.Modified fromDataInputStream.readLine().- Specified by:
readLinein interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException- Since:
- 25.1
-
position
public int position()Returns the position in the underlying byte buffer.- Since:
- 25.1
-