dbux v1.0.0 DBux.Value

Summary

Functions

Aligns given bitstring to bytes appropriate for given type by adding bytes NULL bytes at the end

Types

list_of_values ::
  [] |
  [%DBux.Value{subtype: term, type: term, value: term}]
t :: %DBux.Value{subtype: subtype, type: DBux.Type.simple_type, value: any}

Functions

align(bitstring, type)

Specs

align(Bitstring, DBux.Type.t) :: {:ok, Bitstring, number}
align(Bitstring, number) :: {:ok, Bitstring, number}

Aligns given bitstring to bytes appropriate for given type by adding bytes NULL bytes at the end.

It returns {:ok, aligned_bitstring, added_bytes_count}.

marshall(value, endianness)

Specs

marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
marshall(%DBux.Value{subtype: term, type: term, value: term}, DBux.Protocol.endianness) :: {:ok, Bitstring, number}
unmarshall(bitstring, endianness, arg3, subtype, unwrap_values, depth)