utils/serde

Functions

pub fn deserialize_bool(
  buf: BitArray,
) -> Result(#(Bool, BitArray), String)
pub fn deserialize_bytes(
  buf: BitArray,
) -> Result(#(BitArray, BitArray), String)
pub fn deserialize_int(
  buf: BitArray,
  bit_size: Int,
) -> Result(#(Int, BitArray), String)
pub fn deserialize_string(
  buf: BitArray,
) -> Result(#(String, BitArray), String)
pub fn serialize_bool(
  buf: BytesBuilder,
  value: Bool,
) -> BytesBuilder
pub fn serialize_bytes(
  buf: BytesBuilder,
  data: BitArray,
) -> BytesBuilder
pub fn serialize_int(
  buf: BytesBuilder,
  num: Int,
  bit_size: Int,
) -> BytesBuilder
pub fn serialize_string(
  buf: BytesBuilder,
  str: String,
) -> BytesBuilder
Search Document