Class EaglerArrayByteBuffer
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.internal.buffer.EaglerArrayByteBuffer
-
- All Implemented Interfaces:
Buffer
,ByteBuffer
public class EaglerArrayByteBuffer extends java.lang.Object implements ByteBuffer
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
array()
int
arrayOffset()
FloatBuffer
asFloatBuffer()
IntBuffer
asIntBuffer()
ByteBuffer
asReadOnlyBuffer()
ShortBuffer
asShortBuffer()
int
capacity()
ByteBuffer
clear()
ByteBuffer
compact()
ByteBuffer
duplicate()
ByteBuffer
flip()
byte
get()
ByteBuffer
get(byte[] dst)
ByteBuffer
get(byte[] dst, int offset, int length)
byte
get(int index)
char
getChar()
char
getChar(int index)
float
getFloat()
float
getFloat(int index)
int
getInt()
int
getInt(int index)
long
getLong()
long
getLong(int index)
short
getShort()
short
getShort(int index)
boolean
hasArray()
boolean
hasRemaining()
boolean
isDirect()
boolean
isReadOnly()
int
limit()
ByteBuffer
limit(int newLimit)
ByteBuffer
mark()
int
position()
ByteBuffer
position(int newPosition)
ByteBuffer
put(byte b)
ByteBuffer
put(byte[] src)
ByteBuffer
put(byte[] src, int offset, int length)
ByteBuffer
put(int index, byte b)
ByteBuffer
put(ByteBuffer src)
ByteBuffer
putChar(char value)
ByteBuffer
putChar(int index, char value)
ByteBuffer
putFloat(float value)
ByteBuffer
putFloat(int index, float value)
ByteBuffer
putInt(int value)
ByteBuffer
putInt(int index, int value)
ByteBuffer
putLong(int index, long value)
ByteBuffer
putLong(long value)
ByteBuffer
putShort(int index, short value)
ByteBuffer
putShort(short value)
int
remaining()
ByteBuffer
reset()
ByteBuffer
rewind()
ByteBuffer
slice()
-
-
-
Method Detail
-
hasRemaining
public boolean hasRemaining()
- Specified by:
hasRemaining
in interfaceBuffer
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interfaceBuffer
-
slice
public ByteBuffer slice()
- Specified by:
slice
in interfaceByteBuffer
-
duplicate
public ByteBuffer duplicate()
- Specified by:
duplicate
in interfaceByteBuffer
-
asReadOnlyBuffer
public ByteBuffer asReadOnlyBuffer()
- Specified by:
asReadOnlyBuffer
in interfaceByteBuffer
-
get
public byte get()
- Specified by:
get
in interfaceByteBuffer
-
put
public ByteBuffer put(byte b)
- Specified by:
put
in interfaceByteBuffer
-
get
public byte get(int index)
- Specified by:
get
in interfaceByteBuffer
-
put
public ByteBuffer put(int index, byte b)
- Specified by:
put
in interfaceByteBuffer
-
get
public ByteBuffer get(byte[] dst, int offset, int length)
- Specified by:
get
in interfaceByteBuffer
-
get
public ByteBuffer get(byte[] dst)
- Specified by:
get
in interfaceByteBuffer
-
put
public ByteBuffer put(ByteBuffer src)
- Specified by:
put
in interfaceByteBuffer
-
put
public ByteBuffer put(byte[] src, int offset, int length)
- Specified by:
put
in interfaceByteBuffer
-
put
public ByteBuffer put(byte[] src)
- Specified by:
put
in interfaceByteBuffer
-
arrayOffset
public int arrayOffset()
- Specified by:
arrayOffset
in interfaceBuffer
- Specified by:
arrayOffset
in interfaceByteBuffer
-
compact
public ByteBuffer compact()
- Specified by:
compact
in interfaceByteBuffer
-
getChar
public char getChar()
- Specified by:
getChar
in interfaceByteBuffer
-
putChar
public ByteBuffer putChar(char value)
- Specified by:
putChar
in interfaceByteBuffer
-
getChar
public char getChar(int index)
- Specified by:
getChar
in interfaceByteBuffer
-
putChar
public ByteBuffer putChar(int index, char value)
- Specified by:
putChar
in interfaceByteBuffer
-
getShort
public short getShort()
- Specified by:
getShort
in interfaceByteBuffer
-
putShort
public ByteBuffer putShort(short value)
- Specified by:
putShort
in interfaceByteBuffer
-
getShort
public short getShort(int index)
- Specified by:
getShort
in interfaceByteBuffer
-
putShort
public ByteBuffer putShort(int index, short value)
- Specified by:
putShort
in interfaceByteBuffer
-
asShortBuffer
public ShortBuffer asShortBuffer()
- Specified by:
asShortBuffer
in interfaceByteBuffer
-
getInt
public int getInt()
- Specified by:
getInt
in interfaceByteBuffer
-
putInt
public ByteBuffer putInt(int value)
- Specified by:
putInt
in interfaceByteBuffer
-
getInt
public int getInt(int index)
- Specified by:
getInt
in interfaceByteBuffer
-
putInt
public ByteBuffer putInt(int index, int value)
- Specified by:
putInt
in interfaceByteBuffer
-
asIntBuffer
public IntBuffer asIntBuffer()
- Specified by:
asIntBuffer
in interfaceByteBuffer
-
getLong
public long getLong()
- Specified by:
getLong
in interfaceByteBuffer
-
putLong
public ByteBuffer putLong(long value)
- Specified by:
putLong
in interfaceByteBuffer
-
getLong
public long getLong(int index)
- Specified by:
getLong
in interfaceByteBuffer
-
putLong
public ByteBuffer putLong(int index, long value)
- Specified by:
putLong
in interfaceByteBuffer
-
getFloat
public float getFloat()
- Specified by:
getFloat
in interfaceByteBuffer
-
putFloat
public ByteBuffer putFloat(float value)
- Specified by:
putFloat
in interfaceByteBuffer
-
getFloat
public float getFloat(int index)
- Specified by:
getFloat
in interfaceByteBuffer
-
putFloat
public ByteBuffer putFloat(int index, float value)
- Specified by:
putFloat
in interfaceByteBuffer
-
asFloatBuffer
public FloatBuffer asFloatBuffer()
- Specified by:
asFloatBuffer
in interfaceByteBuffer
-
mark
public ByteBuffer mark()
- Specified by:
mark
in interfaceBuffer
- Specified by:
mark
in interfaceByteBuffer
-
reset
public ByteBuffer reset()
- Specified by:
reset
in interfaceBuffer
- Specified by:
reset
in interfaceByteBuffer
-
clear
public ByteBuffer clear()
- Specified by:
clear
in interfaceBuffer
- Specified by:
clear
in interfaceByteBuffer
-
flip
public ByteBuffer flip()
- Specified by:
flip
in interfaceBuffer
- Specified by:
flip
in interfaceByteBuffer
-
rewind
public ByteBuffer rewind()
- Specified by:
rewind
in interfaceBuffer
- Specified by:
rewind
in interfaceByteBuffer
-
limit
public ByteBuffer limit(int newLimit)
- Specified by:
limit
in interfaceBuffer
- Specified by:
limit
in interfaceByteBuffer
-
position
public ByteBuffer position(int newPosition)
- Specified by:
position
in interfaceBuffer
- Specified by:
position
in interfaceByteBuffer
-
-