StringSerializer
abstract class StringSerializer(charset: Charset, nullLimited: Boolean) : PrimitiveSerializer<String?>
Content copied to clipboard
Abstract serializer for Strings.
For concrete implementations see StringSerializerAscii, StringSerializerUtf8 and StringSerializerUtf16
Constructors
Functions
Link copied to clipboard
open override fun deserialize(buffer: ByteBuffer, featureSet: FeatureSet): String?
Content copied to clipboard
Deserialize Quassel protocol data from a buffer
Link copied to clipboard
Deserialize a string from a given byte slice
Link copied to clipboard
open override fun serialize(buffer: ChainedByteBuffer, data: String?, featureSet: FeatureSet)
Content copied to clipboard
Serialize data with the Quassel protocol to a buffer
Link copied to clipboard
Serialize a string, without length prefix, as a byte size