pb_lite

Types

pub type ValueType {
  VarInt(a: Int)
  Int64(a: Int)
  Binary(a: BitString)
  Group(a: List(#(Int, ValueType)))
  Int32(a: Int)
}

Constructors

  • VarInt(a: Int)
  • Int64(a: Int)
  • Binary(a: BitString)
  • Group(a: List(#(Int, ValueType)))
  • Int32(a: Int)

Functions

pub fn decode(bin: BitString) -> Result(
  #(List(#(Int, ValueType)), BitString),
  Nil,
)
pub fn decode_1(bin: BitString, acc: List(#(Int, ValueType))) -> Result(
  #(List(#(Int, ValueType)), BitString),
  Nil,
)
pub fn dtag_type(bin: BitString) -> Result(
  #(Int, Int, BitString),
  Nil,
)
pub fn dvarint(bin: BitString) -> Result(#(Int, BitString), Nil)
Search Document