Package kvd.common.packet.proto
Class ByteString
java.lang.Object
kvd.common.packet.proto.ByteString
- All Implemented Interfaces:
PacketBody
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteString
copyFrom
(byte[] bytes) static ByteString
copyFromUtf8
(String string) boolean
int
hashCode()
byte[]
-
Constructor Details
-
ByteString
public ByteString(byte[] bytes)
-
-
Method Details
-
toByteArray
public byte[] toByteArray()- Specified by:
toByteArray
in interfacePacketBody
-
hashCode
public int hashCode() -
equals
-
toStringUtf8
-
copyFrom
-
copyFromUtf8
-