StringCodecBase

abstract class StringCodecBase extends StringCodecFast
class Object
trait Matchable
class Any

Value members

Abstract methods

def decodeUTF16(len: Int, buf: ByteBuffer): String
def decodeUTF8(len: Int, buf: ByteBuffer): String
def encodeUTF16(s: String): ByteBuffer
def encodeUTF8(s: String): ByteBuffer

Inherited methods

def decodeFast(len: Int, buf: ByteBuffer): String

String decoding function for a special 1-3 byte encoding of 16-bit char values

String decoding function for a special 1-3 byte encoding of 16-bit char values

Value Params
buf

Buffer containing the data

len

How many bytes to decode

Returns

String with decoded data

Inherited from
StringCodecFast
protected def decodeFastArray(len: Int, buf: ByteBuffer): String

Faster decoding for array backed buffers

Faster decoding for array backed buffers

Inherited from
StringCodecFast
protected def decodeFastBuf(len: Int, buf: ByteBuffer): String

Decoding for normal non-array ByteBuffer

Decoding for normal non-array ByteBuffer

Inherited from
StringCodecFast
def encodeFast(s: String, bb: ByteBuffer): Unit

String encoding function for a special 1-3 byte encoding of 16-bit char values

String encoding function for a special 1-3 byte encoding of 16-bit char values

Value Params
s

String to encode

Returns

ByteBuffer with the encoded data

Inherited from
StringCodecFast
def encodeFastArray(s: String, bb: ByteBuffer): Unit
Inherited from
StringCodecFast
def encodeFastBuf(s: String, bb: ByteBuffer): Unit
Inherited from
StringCodecFast