Package nxt.util.bbh
Interface LengthRw
-
- All Known Implementing Classes:
LengthRwPrimitiveType
public interface LengthRw
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getSize()
static nxt.util.bbh.StringLengthRw
maxStringLen(int maxCharLength)
int
readFromBuffer(java.nio.ByteBuffer buffer)
boolean
validate(int length)
void
writeToBuffer(java.nio.ByteBuffer buffer, int length)
-
-
-
Method Detail
-
getSize
int getSize()
-
readFromBuffer
int readFromBuffer(java.nio.ByteBuffer buffer) throws NxtException.NotValidException
- Throws:
NxtException.NotValidException
-
writeToBuffer
void writeToBuffer(java.nio.ByteBuffer buffer, int length)
-
validate
boolean validate(int length)
-
maxStringLen
static nxt.util.bbh.StringLengthRw maxStringLen(int maxCharLength)
-
-