gmbytecode/include/gmb_heap.hrl
Craig Everett 02468c4907
All checks were successful
Gajumaru Bytecode Tests / tests (push) Successful in -3m33s
Add dialyzer to test sequence
2025-01-22 20:18:30 +09:00

16 lines
608 B
Erlang

-record(pmap, {key_t :: gmb_aevm_data:type(),
val_t :: gmb_aevm_data:type(),
parent :: none | non_neg_integer(),
size = 0 :: non_neg_integer(),
data :: #{gmb_heap:binary_value() => gmb_heap:binary_value() | tombstone}
| stored}).
-record(maps, { maps = #{} :: #{ non_neg_integer() => #pmap{} }
, next_id = 0 :: non_neg_integer() }).
-record(heap, { maps :: #maps{},
offset :: gmb_heap:offset(),
heap :: binary() | #{non_neg_integer() => non_neg_integer()} }).