Ton.Bitstring (ton v0.5.1)
Defines an array of bits. Data structure used in cells
Summary
Types
@type t() :: %Ton.Bitstring{ array: [non_neg_integer()], cursor: non_neg_integer(), length: non_neg_integer() }
Functions
@spec available(t()) :: non_neg_integer()
@spec get_bit(t(), non_neg_integer()) :: boolean()
@spec get_top_upped_length(t()) :: non_neg_integer()
@spec new(non_neg_integer()) :: t()
@spec off_bit(t(), non_neg_integer()) :: t()
@spec on_bit(t(), non_neg_integer()) :: t()
@spec write_address(t(), Ton.Address.t() | nil) :: t()
@spec write_bit(t(), boolean() | non_neg_integer()) :: t()
@spec write_coins(t(), non_neg_integer()) :: t()
@spec write_uint8(t(), non_neg_integer()) :: t()
@spec write_uint(t(), non_neg_integer(), non_neg_integer()) :: t()