Ton.Cell (ton v0.2.0)

Cell data structure used in serialization and deserialization

Link to this section Summary

Link to this section Types

@type cell_kind() ::
  :pruned | :library_reference | :merkle_proof | :merkle_update | :ordinary
@type t() :: %Ton.Cell{data: Ton.Bitstring.t(), kind: cell_kind(), refs: term()}

Link to this section Functions

@spec hash(t()) :: binary()
Link to this function

new(kind \\ :ordinary, data \\ nil)

@spec new(atom(), Ton.Bitstring.t() | nil) :: t()
Link to this function

parse(binary_data, reference_index_size)

@spec parse(binary(), non_neg_integer()) :: {t(), binary()} | no_return()
Link to this function

serialize(root_cell, opts \\ [])

@spec serialize(t(), Keyword.t()) :: binary()
Link to this function

write_cell(cell, another_cell)

@spec write_cell(t(), t()) :: t()