Ton.Boc.Header (ton v0.5.1)

Logic used for contract deserialization from the BOC format

Summary

Types

t()

@type t() :: %Ton.Boc.Header{
  absent_num: non_neg_integer(),
  cells_data: binary(),
  cells_num: non_neg_integer(),
  flags: non_neg_integer(),
  has_cache_bits: boolean(),
  has_idx: boolean(),
  hash_crc32: boolean(),
  index: [non_neg_integer()],
  off_bytes: non_neg_integer(),
  root_list: [non_neg_integer()],
  roots_num: non_neg_integer(),
  size_bytes: non_neg_integer(),
  tot_cells_size: non_neg_integer()
}

Functions

lean_boc_magic_prefix()

@spec lean_boc_magic_prefix() :: binary()

lean_boc_magic_prefix_crc()

@spec lean_boc_magic_prefix_crc() :: binary()

parse(binary_data)

@spec parse(binary()) :: t() | no_return()

reach_boc_magic_prefix()

@spec reach_boc_magic_prefix() :: binary()