module Fremkit::Utils::RLP
Overview
Helper functions for RLP
Defined in:
utils/rlp.crClass Method Summary
- .alloc_with_header : IO::Memory
-
.encode(items : Array) : Bytes
General version: serialize all items one by one.
-
.encode(bytes : Bytes) : Bytes
Specialize template for bytes
- .write_header(payload : Bytes, payload_size : UInt32)
Instance Method Summary
-
#decode(bytes : Bytes) : Tuple(Bytes, UInt32)
Specialization for when this is a list of bytes
- #rlp_bytes_size(bytes : Bytes) : UInt32
Class Method Detail
General version: serialize all items one by one. This won't support payloads more than 64K in total.
Instance Method Detail
Specialization for when this is a list of bytes