package spi
- Alphabetic
- By Inheritance
- spi
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Buffer extends AnyRef
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.
- trait BufferPacker extends Packer
- trait ErrorCode extends AnyRef
- case class ExtTypeHeader(extType: Byte, byteLength: Int) extends Product with Serializable
- case class InsufficientBufferException(currentPosition: Long, expectedLength: Long) extends MessageException with Product with Serializable
-
case class
IntegerOverflowException(bigInteger: BigInteger) extends MessageException with Product with Serializable
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.
-
class
MessageException extends Exception
Base class for message pack errors
- sealed abstract class MessageFormat extends AnyRef
-
trait
MessageSink extends AutoCloseable with Flushable
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.
- trait MessageSource extends AutoCloseable
- type MsgPack = Array[Byte]
-
trait
Packer extends AutoCloseable
Message Packer interface
- trait ReadBuffer extends Buffer
-
case class
ReadCursor(buf: ReadBuffer, position: Int) extends Product with Serializable
Mutable cursor for Unpacker.
- case class TooLargeMessageException(size: Long) extends MessageException with Product with Serializable
-
trait
Unpacker extends AutoCloseable
MessageUnpacker interface
- trait Value extends AnyRef
- sealed abstract class ValueType extends AnyRef
- trait WriteBuffer extends Buffer
- case class WriteCursor(buf: WriteBuffer, position: Int) extends Product with Serializable
Value Members
-
object
Code
MessagePack prefix codes
-
object
Compat
For compatibility with Scala, Scala.js
- object ErrorCode
- object MessageException extends Serializable
-
object
MessageFormat
Describes the list of the message format types defined in the MessagePack specification.
- object MessagePack
-
object
OffsetPacker
Write MessagePack code at a given position on the buffer and return the written byte length
-
object
OffsetUnpacker
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.lastReadLength method.
- object Value
- object ValueFactory
-
object
ValueType
Representation of MessagePack value types.