Class ClajType
java.lang.Object
com.xpdustry.claj.common.status.ClajType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdecode(byte[] data) Data will be truncated if length is greater thanSIZE.static byte[]strwill be truncated if length is greater thanSIZE.booleaninthashCode()static ClajTypestatic ClajTyperead(arc.util.io.ByteBufferInput in) static ClajTyperead(ByteBuffer in) toString()static byte[]truncate(byte[] data, int max, boolean copy) type()inttypeSize()write()voidwrite(arc.util.io.ByteBufferOutput out) voidwrite(ByteBuffer out)
-
Field Details
-
ASCII
-
SIZE
public static final int SIZEIn bytes.- See Also:
-
rawType
protected final byte[] rawType -
type
-
hash
protected final int hash
-
-
Constructor Details
-
ClajType
- See Also:
-
ClajType
public ClajType(byte[] data) - See Also:
-
ClajType
-
-
Method Details
-
type
-
typeSize
public int typeSize() -
hashCode
-
equals
-
toString
-
write
-
write
-
write
public void write(arc.util.io.ByteBufferOutput out) -
read
- See Also:
-
read
- See Also:
-
decode
-
encode
-
truncate
public static byte[] truncate(byte[] data, int max, boolean copy) -
of
-