Package

com.rallyhealth.weepack

v1

Permalink

package v1

Visibility
  1. Public
  2. All

Type Members

  1. case class Arr(value: ArrayBuffer[Msg]) extends Msg with Product with Serializable

    Permalink
  2. abstract class BaseMsgPackParser extends AnyRef

    Permalink
  3. case class Binary(value: Array[Byte]) extends Msg with Product with Serializable

    Permalink
  4. sealed abstract class Bool extends Msg

    Permalink
  5. trait BufferingInputStreamParser extends AnyRef

    Permalink

    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 .

  6. case class Ext(tag: Byte, data: Array[Byte]) extends Msg with Product with Serializable

    Permalink
  7. case class Float32(value: Float) extends Msg with Product with Serializable

    Permalink
  8. case class Float64(value: Double) extends Msg with Product with Serializable

    Permalink
  9. class InputStreamMsgPackParser extends BaseMsgPackParser with BufferingInputStreamParser

    Permalink
  10. case class Int32(value: Int) extends Msg with Product with Serializable

    Permalink
  11. case class Int64(value: Long) extends Msg with Product with Serializable

    Permalink
  12. sealed trait Msg extends FromInput

    Permalink

    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.

  13. class MsgPackParser extends BaseMsgPackParser

    Permalink
  14. class MsgPackRenderer[T <: OutputStream] extends MsgVisitor[T, T]

    Permalink
  15. trait MsgVisitor[-T, +J] extends Visitor[T, J]

    Permalink

    A Visitor specialized to work with msgpack types.

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

  16. case class Obj(value: LinkedHashMap[Msg, Msg]) extends Msg with Product with Serializable

    Permalink
  17. case class Str(value: String) extends Msg with Product with Serializable

    Permalink
  18. case class UInt64(value: Long) extends Msg with Product with Serializable

    Permalink

Value Members

  1. object Arr extends Serializable

    Permalink
  2. object Bool

    Permalink
  3. object BufferingInputStreamParser

    Permalink
  4. object False extends Bool with Product with Serializable

    Permalink
  5. object FromMsgPack

    Permalink
  6. object Msg extends MsgVisitor[Msg, Msg]

    Permalink
  7. object MsgPackKeys

    Permalink
  8. object Null extends Msg with Product with Serializable

    Permalink
  9. object Obj extends Serializable

    Permalink
  10. object ToMsgPack

    Permalink
  11. object True extends Bool with Product with Serializable

    Permalink

Ungrouped