class EncoderSize extends Encoder
- Alphabetic
- By Inheritance
- EncoderSize
- Encoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new EncoderSize(bufferProvider: BufferProvider = DefaultByteBufferProvider.provider)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def asByteBuffer: ByteBuffer
Completes the encoding and returns the ByteBuffer
Completes the encoding and returns the ByteBuffer
- Definition Classes
- EncoderSize → Encoder
- def asByteBuffers: Iterable[ByteBuffer]
Completes the encoding and returns a sequence of ByteBuffers
Completes the encoding and returns a sequence of ByteBuffers
- Definition Classes
- EncoderSize → Encoder
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val stringCodec: StringCodecBase
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def writeByte(b: Byte): Encoder
Encodes a single byte
- def writeByteArray(ba: Array[Byte]): Encoder
Encodes an array of Bytes
Encodes an array of Bytes
- Definition Classes
- EncoderSize → Encoder
- def writeByteBuffer(bb: ByteBuffer): Encoder
Encodes a ByteBuffer by writing its length and content
Encodes a ByteBuffer by writing its length and content
- bb
ByteBuffer to encode
- Definition Classes
- EncoderSize → Encoder
- def writeChar(c: Char): Encoder
Encodes a single character using UTF-8 encoding
Encodes a single character using UTF-8 encoding
- c
Character to encode
- Definition Classes
- EncoderSize → Encoder
- def writeDouble(d: Double): Encoder
Encodes a double as 8 bytes
- def writeDoubleArray(da: Array[Double]): Encoder
Encodes an array of Doubles
Encodes an array of Doubles
- Definition Classes
- EncoderSize → Encoder
- def writeFloat(f: Float): Encoder
Encodes a float as 4 bytes
- def writeFloatArray(fa: Array[Float]): Encoder
Encodes an array of Floats
Encodes an array of Floats
- Definition Classes
- EncoderSize → Encoder
- def writeInt(i: Int): Encoder
Encodes an integer efficiently in 1 to 5 bytes
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 = 1048575 to 268435455 1101 XXXX b0 b1 b2 = -1048575 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1111 ???? = reserved for special codings
Encodes an integer efficiently in 1 to 5 bytes
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 = 1048575 to 268435455 1101 XXXX b0 b1 b2 = -1048575 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1111 ???? = reserved for special codings
- i
Integer to encode
- Definition Classes
- EncoderSize → Encoder
- def writeIntArray(ia: Array[Int]): Encoder
Encodes an array of Integers
Encodes an array of Integers
- Definition Classes
- EncoderSize → Encoder
- def writeIntCode(intCode: Either[Byte, Int]): Encoder
Writes either a code byte (0-15) or an Int
Writes either a code byte (0-15) or an Int
- intCode
Integer or a code byte
- Definition Classes
- EncoderSize → Encoder
- def writeLong(l: Long): Encoder
Encodes a long efficiently in 1 to 9 bytes
0XXX XXXX = 0 to 127 1000 XXXX b0 = 128 to 4095 1001 XXXX b0 = -1 to -4096 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
Encodes a long efficiently in 1 to 9 bytes
0XXX XXXX = 0 to 127 1000 XXXX b0 = 128 to 4095 1001 XXXX b0 = -1 to -4096 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
- l
Long to encode
- Definition Classes
- EncoderSize → Encoder
- def writeLongCode(longCode: Either[Byte, Long]): Encoder
Writes either a code byte (0-15) or a Long
Writes either a code byte (0-15) or a Long
- longCode
Long or a code byte
- Definition Classes
- EncoderSize → Encoder
- def writeRawInt(i: Int): Encoder
Encodes an integer in 32-bits
- def writeRawLong(l: Long): Encoder
Encodes a long in 64-bits
- def writeShort(s: Short): Encoder
Encodes a short integer
Encodes a short integer
- Definition Classes
- EncoderSize → Encoder
- def writeString(s: String): Encoder
Encodes a string using UTF8