typeDefDecode method

  1. @override
LayoutDecodeResult typeDefDecode({
  1. required PortableRegistry registry,
  2. required List<int> bytes,
  3. required int offset,
})

Decodes the data based on the type definition using the provided registry and bytes.

Implementation

@override
LayoutDecodeResult typeDefDecode(
    {required PortableRegistry registry,
    required List<int> bytes,
    required int offset}) {
  final layout = SubstrateBitSequenceLayout();
  return SubstrateSerialization.deserialize(
      bytes: bytes, layout: layout, offset: offset);
}