Package

wvlet.airframe.msgpack

spi

Permalink

package spi

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

Type Members

  1. trait Buffer extends AnyRef

    Permalink

    Buffer interface, which does not have any internal cursors unlike ByteBuffer of Java library.

    Buffer interface, which does not have any internal cursors unlike ByteBuffer of Java library.

    - The read methods read the buffer data from the given position. - The write methods write data to the specified position in the buffer and return the written byte length.

    If the buffer capacity is insufficient, these read/write methods throw an InsufficientBufferException. If this exception is thrown, the user code should feed more data, and then resume reading.

  2. trait BufferPacker extends Packer

    Permalink
  3. trait ErrorCode extends AnyRef

    Permalink
  4. case class ExtTypeHeader(extType: Byte, byteLength: Int) extends Product with Serializable

    Permalink
  5. case class InsufficientBufferException(currentPosition: Int, expectedLength: Int) extends MessageException with Product with Serializable

    Permalink
  6. case class IntegerOverflowException(bigInteger: BigInteger) extends MessageException with Product with Serializable

    Permalink

    This error is thrown when the user tries to read an integer value using a smaller types.

    This error is thrown when the user tries to read an integer value using a smaller types. For example, calling MessageUnpacker.unpackInt() for an integer value that is larger than Integer.MAX_VALUE will cause this exception.

  7. class MessageException extends Exception

    Permalink

    Base class for message pack errors

  8. sealed abstract class MessageFormat extends AnyRef

    Permalink
  9. trait MessageSink extends AutoCloseable with Flushable

    Permalink

    Provides a buffered output stream that writes sequence of WriteBuffer instances.

    Provides a buffered output stream that writes sequence of WriteBuffer instances.

    A Sink implementation has total control of the buffer memory so that it can reuse buffer memory, use buffer pools, or use memory-mapped files.

  10. trait MessageSource extends AutoCloseable

    Permalink

  11. type MsgPack = Array[Byte]

    Permalink
  12. trait Packer extends AutoCloseable

    Permalink

    Message Packer interface

  13. trait ReadBuffer extends Buffer

    Permalink
  14. case class ReadCursor(buf: ReadBuffer, position: Int) extends Product with Serializable

    Permalink

    Mutable cursor for Unpacker.

  15. case class TooLargeMessageException(size: Long) extends MessageException with Product with Serializable

    Permalink
  16. trait Unpacker extends AutoCloseable

    Permalink

    MessageUnpacker interface

  17. trait Value extends AnyRef

    Permalink

  18. sealed abstract class ValueType extends AnyRef

    Permalink
  19. trait WriteBuffer extends Buffer

    Permalink
  20. case class WriteCursor(buf: WriteBuffer, position: Int) extends Product with Serializable

    Permalink

Value Members

  1. object Code

    Permalink

    MessagePack prefix codes

  2. object Compat

    Permalink

    For compatibility with Scala, Scala.js

  3. object ErrorCode

    Permalink

  4. object MessageException extends Serializable

    Permalink
  5. object MessageFormat

    Permalink

    Describes the list of the message format types defined in the MessagePack specification.

  6. object MessagePack

    Permalink

  7. object OffsetPacker

    Permalink

    Write MessagePack code at a given position on the buffer and return the written byte length

  8. object OffsetUnpacker

    Permalink

    Read a message pack data from a given offset in the buffer.

    Read a message pack data from a given offset in the buffer. The last read byte length can be checked by calling ReadCursor.lastReadByteLength method.

  9. object Value

    Permalink
  10. object ValueFactory

    Permalink
  11. object ValueType

    Permalink

    Representation of MessagePack value types.

Inherited from AnyRef

Inherited from Any

Ungrouped