Package nxt.util.bbh
Class ByteArrayRw
java.lang.Object
nxt.util.bbh.ByteArrayRw
- All Implemented Interfaces:
ObjectRw<byte[]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSize(byte[] bytes) byte[]readFromBuffer(ByteBuffer buffer) booleanvalidate(byte[] bytes) voidwriteToBuffer(byte[] bytes, ByteBuffer buffer)
-
Constructor Details
-
ByteArrayRw
public ByteArrayRw(int maxLength)
-
-
Method Details
-
getSize
public int getSize(byte[] bytes) -
readFromBuffer
- Specified by:
readFromBufferin interfaceObjectRw<byte[]>- Throws:
NxtException.NotValidException
-
writeToBuffer
- Specified by:
writeToBufferin interfaceObjectRw<byte[]>
-
validate
public boolean validate(byte[] bytes)
-