scale_codec library
Classes
-
ArrayCodec<
A> - BitArray
- Bit array to store bits.
- BitSequenceCodec
- A codec representing a sequence of bits.
- BoolCodec
-
BTreeMapCodec<
K, V> - BTreeMap to encode/decode map of values
- ByteInput
- Allows reading of data into.
- ByteOutput
- Default writing of data.
- CompactBigIntCodec
- CompactCodec
-
ComplexEnumCodec<
V> - CompositeCodec
- Composite to encode/decode map of values
-
DynamicEnumCodec<
V> - HexOutput
- I128Codec
- I16ArrayCodec
- I16Codec
- I16SequenceCodec
- I256Codec
- I32ArrayCodec
- I32Codec
- I32SequenceCodec
- I64ArrayCodec
- I64Codec
- I64SequenceCodec
- I8ArrayCodec
- I8Codec
- I8SequenceCodec
-
NestedOptionCodec<
E> - NullCodec
- Empty codec to encode/decode nothing
-
Option<
E> -
OptionCodec<
E> - ProxyCodec
- A proxy codec that can be used to dynamically change the codec
- Registry
-
Result<
R, E> -
ResultCodec<
R, E> - ScaleCodec
-
SequenceCodec<
A> - SetCodec
-
SimpleEnumCodec<
A> - SizeTracker
- Default writing of data.
- StrCodec
- TupleCodec
- U128Codec
- U16ArrayCodec
- U16Codec
- U16SequenceCodec
- U256Codec
- U32ArrayCodec
- U32Codec
- U32SequenceCodec
- U64ArrayCodec
- U64Codec
- U64SequenceCodec
- U8ArrayCodec
- U8Codec
- U8SequenceCodec
Enums
- BitOrder
- In-Element Bit Ordering The BitOrder bridges semantic indices to electrical position counters or selection masks (marked by the BitSel and BitMask types). Reference: https://github.com/ferrilab/bitvec/blob/v0/22/3/src/order.rs#L358-L377
- BitStore
- Defines the BitArray memory model used to interface bit-slice regions to raw memory, and manage type-state changes as demanded by the region descriptor. Reference: https://github.com/ferrilab/bitvec/blob/v0/22/3/src/store.rs#L307-L316
Mixins
-
Codec<
E> -
GeneratorOutput<
T> - Input
- Trait that allows reading of data into a slice.
- Output
- Allows writing of data.
Extensions
- EnumExtensions on T
- Usage:
-
ListExtension
on List<
T>
Functions
-
assertion(
bool value, [String? msg]) → void -
Asserts if the
value
value is true or not -
decodeHex(
String value) → Uint8List -
Decodes hex
value
and converts to Buffer of Uint8List -
encodeHex(
List< int> bytes) → String -
Encodes buffer of list of integers
bytes
to hexa-decimal. -
getArrayMatch(
String typeString) → RegExpMatch? -
Match the typeString with the regex
Example: '
u8; 10
' -> ['u8; 10
', 'u8', '10'] Example: '[u8; 2
; 100]' -> ['u8; 100
', 'u8; 2
', '100'] -
getArrowMatch(
String typeString) → RegExpMatch? - Match the typeString with the regex Example: 'Vec
-
getResultMatch(
String typeString) → RegExpMatch? -
Match the typeString with the regex
Example: 'Result<u8, bool>' ->
'Result<u8, bool>', 'Result', 'u8', 'bool'
Example: 'Result<Result<u8, bool>, bool>' ->'Result<Result<u8, bool>, bool>', 'Result', 'Result<u8, bool>', 'bool'
-
parseTupleRegExp(
String text) → List< String> - returns a list of strings from a tuple string
Typedefs
- ProxyLoader = Codec Function()
Exceptions / Errors
- AssertionException
- AssertionException
- CompositeException
- CompositeException
- EnumException
- EnumException
- EOFException
- EOFException
- HexException
- HexException
- OptionException
- OptionException
- OutOfBoundsException
- OutOfBoundsException
- ResultException
- ResultException