upack

package upack

Members list

Type members

Classlikes

case class Arr(value: ArrayBuffer[Msg]) extends Msg

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
object Arr

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Arr.type
abstract class BaseMsgPackReader extends BufferingByteParser

Attributes

Supertypes
trait BufferingByteParser
class Object
trait Matchable
class Any
Known subtypes
case class Binary(value: Array[Byte]) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
sealed abstract class Bool extends Msg

Attributes

Companion
object
Supertypes
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
Known subtypes
object False.type
object True.type
object Bool

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Bool.type
case class Ext(tag: Byte, data: Array[Byte]) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
case object False extends Bool

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Bool
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
Self type
False.type
case class Float32(value: Float) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
case class Float64(value: Double) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
class InputStreamMsgPackReader(val inputStream: InputStream, val minBufferStartSize: Int, val maxBufferStartSize: Int) extends BaseMsgPackReader, BufferingInputStreamParser

Attributes

Supertypes
trait BufferingInputStreamParser
trait BufferingByteParser
class Object
trait Matchable
class Any
Show all
case class Int32(value: Int) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
case class Int64(value: Long) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
sealed trait Msg extends Readable, Writable

In-memory representation of the MessagePack data model

In-memory representation of the MessagePack data model

test - https://msgpack.org/index.html

Note that we do not model all the fine details of the MessagePack format in this type; fixed and variable length strings/maps/arrays are all modelled using the same Str/Obj/Arr types, and the various sized integers are all collapsed into Int32/Int64/UInt64. The appropriately sized versions are written out when the message is serialized to bytes.

Attributes

Companion
object
Supertypes
trait Writable
trait Readable
class Object
trait Matchable
class Any
Known subtypes
class Arr
class Binary
class Bool
object False.type
object True.type
class Ext
class Float32
class Float64
class Int32
class Int64
object Null.type
class Obj
class Str
class UInt64
Show all
object Msg extends MsgVisitor[Msg, Msg]

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
trait MsgVisitor[Msg, Msg]
trait Visitor[Msg, Msg]
class Object
trait Matchable
class Any
Show all
Self type
Msg.type
object MsgPackKeys

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class MsgPackReader(input0: Array[Byte]) extends BaseMsgPackReader

Attributes

Supertypes
trait BufferingByteParser
class Object
trait Matchable
class Any
class MsgPackWriter[T <: OutputStream](out: T) extends MsgVisitor[T, T]

Attributes

Supertypes
trait MsgVisitor[T, T]
trait Visitor[T, T]
class Object
trait Matchable
class Any
trait MsgVisitor[-T, +J] extends Visitor[T, J]

A Visitor specialized to work with msgpack types. Forwards the not-msgpack-related methods to their msgpack equivalents.

A Visitor specialized to work with msgpack types. Forwards the not-msgpack-related methods to their msgpack equivalents.

Attributes

Supertypes
trait Visitor[T, J]
class Object
trait Matchable
class Any
Known subtypes
object Msg.type
class MsgPackWriter[T]
case object Null extends Msg

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
Self type
Null.type
case class Obj(value: LinkedHashMap[Msg, Msg]) extends Msg

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
object Obj

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Obj.type
trait Readable

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Msg
class Arr
class Binary
class Bool
object False.type
object True.type
class Ext
class Float32
class Float64
class Int32
class Int64
object Null.type
class Obj
class Str
class UInt64
Show all
object Readable extends ReadableLowPri

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Readable.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Readable.type
case class Str(value: String) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
case object True extends Bool

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Bool
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all
Self type
True.type
case class UInt64(value: Long) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait Writable
trait Readable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def copy(t: Msg): Msg
def read(s: Readable, trace: Boolean): Msg

Read the given MessagePack input into a MessagePack struct

Read the given MessagePack input into a MessagePack struct

Attributes

def transform[T](t: Readable, v: Visitor[_, T]): T
def validate(s: Readable): Unit

Parse the given MessagePack input, failing if it is invalid

Parse the given MessagePack input, failing if it is invalid

Attributes

def write(t: Msg): Array[Byte]

Write the given MessagePack struct as a binary

Write the given MessagePack struct as a binary

Attributes

def writeTo(t: Msg, out: OutputStream): Unit

Write the given MessagePack struct as a binary to the given OutputStream

Write the given MessagePack struct as a binary to the given OutputStream

Attributes

def writeToByteArray(t: Msg): Array[Byte]