Class

boopickle

EncoderSize

Related Doc: package boopickle

Permalink

final class EncoderSize extends Encoder

Linear Supertypes
Encoder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EncoderSize
  2. Encoder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EncoderSize(bufferProvider: BufferProvider = DefaultByteBufferProvider.provider)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def asByteBuffer: ByteBuffer

    Permalink

    Completes the encoding and returns the ByteBuffer

    Completes the encoding and returns the ByteBuffer

    Definition Classes
    EncoderSizeEncoder
  5. def asByteBuffers: Iterable[ByteBuffer]

    Permalink

    Completes the encoding and returns a sequence of ByteBuffers

    Completes the encoding and returns a sequence of ByteBuffers

    Definition Classes
    EncoderSizeEncoder
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. val stringCodec: StringCodecBase

    Permalink
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def writeByte(b: Byte): Encoder

    Permalink

    Encodes a single byte

    Encodes a single byte

    b

    Byte to encode

    Definition Classes
    EncoderSizeEncoder
  24. def writeByteArray(ba: Array[Byte]): Encoder

    Permalink

    Encodes an array of Bytes

    Encodes an array of Bytes

    Definition Classes
    EncoderSizeEncoder
  25. def writeByteBuffer(bb: ByteBuffer): Encoder

    Permalink

    Encodes a ByteBuffer by writing its length and content

    Encodes a ByteBuffer by writing its length and content

    bb

    ByteBuffer to encode

    Definition Classes
    EncoderSizeEncoder
  26. def writeChar(c: Char): Encoder

    Permalink

    Encodes a single character using UTF-8 encoding

    Encodes a single character using UTF-8 encoding

    c

    Character to encode

    Definition Classes
    EncoderSizeEncoder
  27. def writeDouble(d: Double): Encoder

    Permalink

    Encodes a double as 8 bytes

    Encodes a double as 8 bytes

    d

    Double to encode

    Definition Classes
    EncoderSizeEncoder
  28. def writeDoubleArray(da: Array[Double]): Encoder

    Permalink

    Encodes an array of Doubles

    Encodes an array of Doubles

    Definition Classes
    EncoderSizeEncoder
  29. def writeFloat(f: Float): Encoder

    Permalink

    Encodes a float as 4 bytes

    Encodes a float as 4 bytes

    f

    Float to encode

    Definition Classes
    EncoderSizeEncoder
  30. def writeFloatArray(fa: Array[Float]): Encoder

    Permalink

    Encodes an array of Floats

    Encodes an array of Floats

    Definition Classes
    EncoderSizeEncoder
  31. def writeInt(i: Int): Encoder

    Permalink

    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
    EncoderSizeEncoder
  32. def writeIntArray(ia: Array[Int]): Encoder

    Permalink

    Encodes an array of Integers

    Encodes an array of Integers

    Definition Classes
    EncoderSizeEncoder
  33. def writeIntCode(intCode: Either[Byte, Int]): Encoder

    Permalink

    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
    EncoderSizeEncoder
  34. def writeLong(l: Long): Encoder

    Permalink

    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
    EncoderSizeEncoder
  35. def writeLongCode(longCode: Either[Byte, Long]): Encoder

    Permalink

    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
    EncoderSizeEncoder
  36. def writeRawInt(i: Int): Encoder

    Permalink

    Encodes an integer in 32-bits

    Encodes an integer in 32-bits

    i

    Integer to encode

    Definition Classes
    EncoderSizeEncoder
  37. def writeRawLong(l: Long): Encoder

    Permalink

    Encodes a long in 64-bits

    Encodes a long in 64-bits

    l

    Long to encode

    Definition Classes
    EncoderSizeEncoder
  38. def writeShort(s: Short): Encoder

    Permalink

    Encodes a short integer

    Encodes a short integer

    Definition Classes
    EncoderSizeEncoder
  39. def writeString(s: String): Encoder

    Permalink

    Encodes a string using UTF8

    Encodes a string using UTF8

    s

    String to encode

    Definition Classes
    EncoderSizeEncoder

Inherited from Encoder

Inherited from AnyRef

Inherited from Any

Ungrouped