Package org.teavm.classlib.java.nio
Class TByteBuffer
java.lang.Object
org.teavm.classlib.java.nio.TBuffer
org.teavm.classlib.java.nio.TByteBuffer
- All Implemented Interfaces:
TComparable<TByteBuffer>
-
Method Summary
Modifier and TypeMethodDescriptionstatic TByteBuffer
allocate(int capacity)
static TByteBuffer
allocateDirect(int capacity)
byte[]
array()
int
abstract TCharBuffer
abstract TDoubleBuffer
abstract TFloatBuffer
abstract TIntBuffer
abstract TLongBuffer
abstract TByteBuffer
abstract TShortBuffer
clear()
abstract TByteBuffer
compact()
int
compareTo(TByteBuffer other)
abstract TByteBuffer
boolean
flip()
abstract byte
get()
get(byte[] dst)
get(byte[] dst, int offset, int length)
abstract byte
get(int index)
abstract char
getChar()
abstract char
getChar(int index)
abstract int
getInt()
abstract int
getInt(int index)
abstract long
getLong()
abstract long
getLong(int index)
abstract short
getShort()
abstract short
getShort(int index)
boolean
hasArray()
int
hashCode()
abstract boolean
isDirect()
limit(int newLimit)
mark()
order()
order(TByteOrder bo)
position(int newPosition)
abstract TByteBuffer
put(byte b)
put(byte[] src)
put(byte[] src, int offset, int length)
abstract TByteBuffer
put(int index, byte b)
put(TByteBuffer src)
abstract TByteBuffer
putChar(char value)
abstract TByteBuffer
putChar(int index, char value)
abstract TByteBuffer
putInt(int value)
abstract TByteBuffer
putInt(int index, int value)
abstract TByteBuffer
putLong(int index, long value)
abstract TByteBuffer
putLong(long value)
abstract TByteBuffer
putShort(int index, short value)
abstract TByteBuffer
putShort(short value)
reset()
rewind()
abstract TByteBuffer
slice()
toString()
static TByteBuffer
wrap(byte[] array)
static TByteBuffer
wrap(byte[] array, int offset, int length)
Methods inherited from class org.teavm.classlib.java.nio.TBuffer
capacity, hasRemaining, isReadOnly, limit, position, remaining
-
Method Details
-
allocateDirect
-
allocate
-
wrap
-
wrap
-
slice
-
duplicate
-
asReadOnlyBuffer
-
get
public abstract byte get() -
put
-
get
public abstract byte get(int index) -
put
-
get
-
get
-
put
-
put
-
put
-
hasArray
public boolean hasArray() -
array
public final byte[] array() -
arrayOffset
public int arrayOffset()- Specified by:
arrayOffset
in classTBuffer
-
compact
-
isDirect
public abstract boolean isDirect() -
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceTComparable<TByteBuffer>
-
order
-
order
-
getChar
public abstract char getChar() -
putChar
-
getChar
public abstract char getChar(int index) -
putChar
-
asCharBuffer
-
getShort
public abstract short getShort() -
putShort
-
getShort
public abstract short getShort(int index) -
putShort
-
asShortBuffer
-
getInt
public abstract int getInt() -
putInt
-
getInt
public abstract int getInt(int index) -
putInt
-
asIntBuffer
-
getLong
public abstract long getLong() -
putLong
-
getLong
public abstract long getLong(int index) -
putLong
-
asLongBuffer
-
asFloatBuffer
-
asDoubleBuffer
-
mark
-
reset
-
clear
-
flip
-
rewind
-
limit
-
position
-