Package cn.nukkit.utils.collection
Class PureByteArray
java.lang.Object
cn.nukkit.utils.collection.PureByteArray
- All Implemented Interfaces:
ArrayWrapper<Byte>
,ByteArrayWrapper
-
Method Summary
Modifier and TypeMethodDescriptionbyte
getByte
(int index) byte[]
void
setByte
(int index, byte b) void
setRawBytes
(byte[] bytes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.utils.collection.ByteArrayWrapper
get, getRawData, set, setRawData
-
Method Details
-
getRawBytes
public byte[] getRawBytes()- Specified by:
getRawBytes
in interfaceByteArrayWrapper
-
setRawBytes
public void setRawBytes(byte[] bytes) - Specified by:
setRawBytes
in interfaceByteArrayWrapper
-
getByte
public byte getByte(int index) - Specified by:
getByte
in interfaceByteArrayWrapper
-
setByte
public void setByte(int index, byte b) - Specified by:
setByte
in interfaceByteArrayWrapper
-