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.Objectarray()intarrayOffset()FloatBufferasFloatBuffer()IntBufferasIntBuffer()ByteBufferasReadOnlyBuffer()ShortBufferasShortBuffer()intcapacity()ByteBufferclear()ByteBuffercompact()ByteBufferduplicate()ByteBufferflip()byteget()ByteBufferget(byte[] dst)ByteBufferget(byte[] dst, int offset, int length)byteget(int index)chargetChar()chargetChar(int index)floatgetFloat()floatgetFloat(int index)intgetInt()intgetInt(int index)longgetLong()longgetLong(int index)shortgetShort()shortgetShort(int index)booleanhasArray()booleanhasRemaining()booleanisDirect()booleanisReadOnly()intlimit()ByteBufferlimit(int newLimit)ByteBuffermark()intposition()ByteBufferposition(int newPosition)ByteBufferput(byte b)ByteBufferput(byte[] src)ByteBufferput(byte[] src, int offset, int length)ByteBufferput(int index, byte b)ByteBufferput(ByteBuffer src)ByteBufferputChar(char value)ByteBufferputChar(int index, char value)ByteBufferputFloat(float value)ByteBufferputFloat(int index, float value)ByteBufferputInt(int value)ByteBufferputInt(int index, int value)ByteBufferputLong(int index, long value)ByteBufferputLong(long value)ByteBufferputShort(int index, short value)ByteBufferputShort(short value)intremaining()ByteBufferreset()ByteBufferrewind()ByteBufferslice()
-
-
-
Method Detail
-
hasRemaining
public boolean hasRemaining()
- Specified by:
hasRemainingin interfaceBuffer
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceBuffer
-
slice
public ByteBuffer slice()
- Specified by:
slicein interfaceByteBuffer
-
duplicate
public ByteBuffer duplicate()
- Specified by:
duplicatein interfaceByteBuffer
-
asReadOnlyBuffer
public ByteBuffer asReadOnlyBuffer()
- Specified by:
asReadOnlyBufferin interfaceByteBuffer
-
get
public byte get()
- Specified by:
getin interfaceByteBuffer
-
put
public ByteBuffer put(byte b)
- Specified by:
putin interfaceByteBuffer
-
get
public byte get(int index)
- Specified by:
getin interfaceByteBuffer
-
put
public ByteBuffer put(int index, byte b)
- Specified by:
putin interfaceByteBuffer
-
get
public ByteBuffer get(byte[] dst, int offset, int length)
- Specified by:
getin interfaceByteBuffer
-
get
public ByteBuffer get(byte[] dst)
- Specified by:
getin interfaceByteBuffer
-
put
public ByteBuffer put(ByteBuffer src)
- Specified by:
putin interfaceByteBuffer
-
put
public ByteBuffer put(byte[] src, int offset, int length)
- Specified by:
putin interfaceByteBuffer
-
put
public ByteBuffer put(byte[] src)
- Specified by:
putin interfaceByteBuffer
-
arrayOffset
public int arrayOffset()
- Specified by:
arrayOffsetin interfaceBuffer- Specified by:
arrayOffsetin interfaceByteBuffer
-
compact
public ByteBuffer compact()
- Specified by:
compactin interfaceByteBuffer
-
getChar
public char getChar()
- Specified by:
getCharin interfaceByteBuffer
-
putChar
public ByteBuffer putChar(char value)
- Specified by:
putCharin interfaceByteBuffer
-
getChar
public char getChar(int index)
- Specified by:
getCharin interfaceByteBuffer
-
putChar
public ByteBuffer putChar(int index, char value)
- Specified by:
putCharin interfaceByteBuffer
-
getShort
public short getShort()
- Specified by:
getShortin interfaceByteBuffer
-
putShort
public ByteBuffer putShort(short value)
- Specified by:
putShortin interfaceByteBuffer
-
getShort
public short getShort(int index)
- Specified by:
getShortin interfaceByteBuffer
-
putShort
public ByteBuffer putShort(int index, short value)
- Specified by:
putShortin interfaceByteBuffer
-
asShortBuffer
public ShortBuffer asShortBuffer()
- Specified by:
asShortBufferin interfaceByteBuffer
-
getInt
public int getInt()
- Specified by:
getIntin interfaceByteBuffer
-
putInt
public ByteBuffer putInt(int value)
- Specified by:
putIntin interfaceByteBuffer
-
getInt
public int getInt(int index)
- Specified by:
getIntin interfaceByteBuffer
-
putInt
public ByteBuffer putInt(int index, int value)
- Specified by:
putIntin interfaceByteBuffer
-
asIntBuffer
public IntBuffer asIntBuffer()
- Specified by:
asIntBufferin interfaceByteBuffer
-
getLong
public long getLong()
- Specified by:
getLongin interfaceByteBuffer
-
putLong
public ByteBuffer putLong(long value)
- Specified by:
putLongin interfaceByteBuffer
-
getLong
public long getLong(int index)
- Specified by:
getLongin interfaceByteBuffer
-
putLong
public ByteBuffer putLong(int index, long value)
- Specified by:
putLongin interfaceByteBuffer
-
getFloat
public float getFloat()
- Specified by:
getFloatin interfaceByteBuffer
-
putFloat
public ByteBuffer putFloat(float value)
- Specified by:
putFloatin interfaceByteBuffer
-
getFloat
public float getFloat(int index)
- Specified by:
getFloatin interfaceByteBuffer
-
putFloat
public ByteBuffer putFloat(int index, float value)
- Specified by:
putFloatin interfaceByteBuffer
-
asFloatBuffer
public FloatBuffer asFloatBuffer()
- Specified by:
asFloatBufferin interfaceByteBuffer
-
mark
public ByteBuffer mark()
- Specified by:
markin interfaceBuffer- Specified by:
markin interfaceByteBuffer
-
reset
public ByteBuffer reset()
- Specified by:
resetin interfaceBuffer- Specified by:
resetin interfaceByteBuffer
-
clear
public ByteBuffer clear()
- Specified by:
clearin interfaceBuffer- Specified by:
clearin interfaceByteBuffer
-
flip
public ByteBuffer flip()
- Specified by:
flipin interfaceBuffer- Specified by:
flipin interfaceByteBuffer
-
rewind
public ByteBuffer rewind()
- Specified by:
rewindin interfaceBuffer- Specified by:
rewindin interfaceByteBuffer
-
limit
public ByteBuffer limit(int newLimit)
- Specified by:
limitin interfaceBuffer- Specified by:
limitin interfaceByteBuffer
-
position
public ByteBuffer position(int newPosition)
- Specified by:
positionin interfaceBuffer- Specified by:
positionin interfaceByteBuffer
-
-