DecoderSize

class DecoderSize(val buf: ByteBuffer) extends Decoder
trait Decoder
class Object
trait Matchable
class Any

Value members

Concrete methods

def readByte: Byte

Decodes a single byte

Decodes a single byte

def readByteArray(): Array[Byte]

Decodes an array of Bytes

Decodes an array of Bytes

def readByteArray(len: Int): Array[Byte]
def readByteBuffer: ByteBuffer
def readChar: Char

Decodes a UTF-8 encoded character (1-3 bytes) and produces a single UTF-16 character

Decodes a UTF-8 encoded character (1-3 bytes) and produces a single UTF-16 character

def readDouble: Double

Decodes a 64-bit double (8 bytes)

Decodes a 64-bit double (8 bytes)

def readDoubleArray(): Array[Double]

Decodes an array of Doubles

Decodes an array of Doubles

def readDoubleArray(len: Int): Array[Double]
def readFloat: Float

Decodes a 32-bit float (4 bytes)

Decodes a 32-bit float (4 bytes)

def readFloatArray(): Array[Float]

Decodes an array of Floats

Decodes an array of Floats

def readFloatArray(len: Int): Array[Float]
def readInt: Int

Decodes a 32-bit integer (1-5 bytes)

Decodes a 32-bit integer (1-5 bytes)

<pre> 0XXX XXXX = 0 to 127 1000 XXXX b0 = 128 to 4095 1001 XXXX b0 = -1 to -4095 1010 XXXX b0 b1 = 4096 to 1048575 1011 XXXX b0 b1 = -4096 to -1048575 1100 XXXX b0 b1 b2 = 1048576 to 268435455 1101 XXXX b0 b1 b2 = -1048576 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1111 ???? = reserved for special codings </pre>

def readIntArray(): Array[Int]

Decodes an array of Integers

Decodes an array of Integers

def readIntArray(len: Int): Array[Int]
def readIntCode: Either[Byte, Int]

Decodes a 32-bit integer, or returns the first byte if it doesn't contain a valid encoding marker

Decodes a 32-bit integer, or returns the first byte if it doesn't contain a valid encoding marker

def readLong: Long

Decodes a 64-bit integer (1-9 bytes)

Decodes a 64-bit integer (1-9 bytes)

<pre> 0XXX XXXX = 0 to 127 1000 XXXX b0 = 128 to 4095 1001 XXXX b0 = -1 to -4095 1010 XXXX b0 b1 = 4096 to 1048575 1011 XXXX b0 b1 = -4096 to -1048575 1100 XXXX b0 b1 b2 = 1048576 to 268435455 1101 XXXX b0 b1 b2 = -1048576 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1110 0001 b0 b1 b2 b3 b4 b5 b6 b7 = anything larger 1111 ???? = reserved for special codings </pre>

def readLongCode: Either[Byte, Long]

Decodes a 64-bit long, or returns the first byte if it doesn't contain a valid encoding marker

Decodes a 64-bit long, or returns the first byte if it doesn't contain a valid encoding marker

def readRawInt: Int
def readRawLong: Long
def readShort: Short

Decodes a 16-bit integer

Decodes a 16-bit integer

def readString: String

Decodes a UTF-8 encoded string

Decodes a UTF-8 encoded string

def readString(len: Int): String

Decodes a UTF-8 encoded string whose length is already known

Decodes a UTF-8 encoded string whose length is already known

Value Params
len

Length of the string (in bytes)

Concrete fields

val buf: ByteBuffer