boopickle

Encoder

Related Doc: package boopickle

class Encoder extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Encoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def asByteBuffer: ByteBuffer

    Completes the encoding and returns the ByteBuffer

    Completes the encoding and returns the ByteBuffer

    returns

  5. def asByteBuffers: Iterable[ByteBuffer]

    Completes the encoding and returns a sequence of ByteBuffers

    Completes the encoding and returns a sequence of ByteBuffers

    returns

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  17. val stringCodec: StringCodecFuncs

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

    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

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

    Encodes a single byte

    Encodes a single byte

    b

    Byte to encode

    returns

    Annotations
    @inline()
  24. 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

    returns

  25. 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

    returns

  26. def writeDouble(d: Double): Encoder

    Encodes a double as 8 bytes

    Encodes a double as 8 bytes

    d

    Double to encode

    returns

    Annotations
    @inline()
  27. def writeFloat(f: Float): Encoder

    Encodes a float as 4 bytes

    Encodes a float as 4 bytes

    f

    Float to encode

    returns

    Annotations
    @inline()
  28. 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

  29. 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

  30. def writeRawInt(i: Int): Encoder

    Encodes an integer in 32-bits

    Encodes an integer in 32-bits

    i

    Integer to encode

    returns

  31. def writeRawLong(l: Long): Encoder

    Encodes a long in 64-bits

    Encodes a long in 64-bits

    l

    Long to encode

    returns

  32. def writeString(s: String): Encoder

    Encodes a string using UTF8

    Encodes a string using UTF8

    s

    String to encode

    returns

Inherited from AnyRef

Inherited from Any

Ungrouped