com.rallyhealth.weepack.v1

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 FromInput
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 BaseMsgPackParser

Attributes

Supertypes
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 FromInput
class Object
trait Matchable
class Any
Show all
sealed abstract class Bool extends Msg

Attributes

Companion
object
Supertypes
trait Msg
trait FromInput
class Object
trait Matchable
class Any
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

Defines common functionality to any parser that works on a java.io.InputStream

Defines common functionality to any parser that works on a java.io.InputStream

Allows you to look up individual bytes by index, take slices of byte ranges or strings, and drop old portions of buffered data once you are certain you no longer need them.

The buffer size is managed by allowing it to grow in size until it exceeds its capacity. When that happens, one of two things happen:

  • If the buffer has enough space, we left-shift the data in the buffer to over-write the portion that has already been dropped.

  • If the buffer does not have enough space, we allocate a new buffer big enough to hold the new data we need to store (size a power of two multiple of the old size) and copy the data over, again shifted left .

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait FromInput
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 FromInput
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 FromInput
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 FromInput
class Object
trait Matchable
class Any
Show all
object FromMsgPack

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class InputStreamMsgPackParser(val data: InputStream, val minStartBufferSize: Int, val maxStartBufferSize: Int) extends BaseMsgPackParser, BufferingInputStreamParser

Attributes

Supertypes
class Object
trait Matchable
class Any
case class Int32(value: Int) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait FromInput
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 FromInput
class Object
trait Matchable
class Any
Show all
sealed trait Msg extends FromInput

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 FromInput
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]
trait AutoCloseable
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 MsgPackParser(val startIndex: Int, input0: Array[Byte]) extends BaseMsgPackParser

Attributes

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

Attributes

Supertypes
trait MsgVisitor[T, T]
trait Visitor[T, T]
trait AutoCloseable
class Object
trait Matchable
class Any
Show all
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]
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes
object Msg.type
class MsgPackRenderer[T]
case object Null extends Msg

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Msg
trait FromInput
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 FromInput
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
case class Str(value: String) extends Msg

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Msg
trait FromInput
class Object
trait Matchable
class Any
Show all
object ToMsgPack

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
ToMsgPack.type
case object True extends Bool

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Bool
trait Msg
trait FromInput
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 FromInput
class Object
trait Matchable
class Any
Show all