wvlet.airframe.msgpack.spi

Attributes

Members list

Type members

Classlikes

trait Buffer

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.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait BufferPacker extends Packer

Attributes

Supertypes
trait Packer
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes
object Code

MessagePack prefix codes

MessagePack prefix codes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Code.type
object Compat

For compatibility with Scala, Scala.js

For compatibility with Scala, Scala.js

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Compat.type
trait ErrorCode

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ErrorCode

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
ErrorCode.type
case class ExtTypeHeader(extType: Byte, byteLength: Int)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class InsufficientBufferException(currentPosition: Long, expectedLength: Long) extends MessageException

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class IntegerOverflowException(bigInteger: BigInteger) extends MessageException

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.

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.

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class MessageException(val errorCode: ErrorCode, message: String, cause: Throwable) extends Exception

Base class for message pack errors

Base class for message pack errors

Attributes

Companion
object
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class MessageFormat(val valueType: ValueType)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ARRAY16
object ARRAY32
object BIN16
object BIN32
object BIN8
object BOOLEAN
object EXT16
object EXT32
object EXT8
object FIXARRAY
object FIXEXT1
object FIXEXT16
object FIXEXT2
object FIXEXT4
object FIXEXT8
object FIXMAP
object FIXSTR
object FLOAT32
object FLOAT64
object INT16
object INT32
object INT64
object INT8
object MAP16
object MAP32
object NEGFIXINT
object NEVER_USED
object NIL
object POSFIXINT
object STR16
object STR32
object STR8
object UINT16
object UINT32
object UINT64
object UINT8
Show all
object MessageFormat

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

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

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
object MessagePack

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait MessageSink extends AutoCloseable, 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.

Attributes

Supertypes
trait Flushable
trait AutoCloseable
class Object
trait Matchable
class Any
trait MessageSource extends AutoCloseable

Attributes

Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
object OffsetPacker

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

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

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

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.

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.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait Packer extends AutoCloseable

Message Packer interface

Message Packer interface

Attributes

Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes
trait ReadBuffer extends Buffer

Attributes

Supertypes
trait Buffer
class Object
trait Matchable
class Any
Known subtypes
case class ReadCursor(var buf: ReadBuffer, var position: Int)

Mutable cursor for Unpacker.

Mutable cursor for Unpacker.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TooLargeMessageException(size: Long) extends MessageException

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
trait Unpacker extends AutoCloseable

MessageUnpacker interface

MessageUnpacker interface

Attributes

Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes
trait Value

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ArrayValue
class BooleanValue
class DoubleValue
trait IntegerValue
class LongValue
class MapValue
object NilValue
class RawValue
class BinaryValue
class StringValue
Show all
object Value

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Value.type
object ValueFactory

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class ValueType(val isNumber: Boolean, val isRaw: Boolean)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ARRAY
object BINARY
object BOOLEAN
object EXTENSION
object FLOAT
object INTEGER
object MAP
object NIL
object STRING
Show all
object ValueType

Representation of MessagePack value types.

Representation of MessagePack value types.

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
ValueType.type
trait WriteBuffer extends Buffer

Attributes

Supertypes
trait Buffer
class Object
trait Matchable
class Any
Known subtypes
case class WriteCursor(var buf: WriteBuffer, var position: Int)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Types

type MsgPack = Array[Byte]