layout/layout library

Classes

BaseIntiger<T>
BaseLazyLayout<T>
BigIntLayout
Represents a layout for big integers.
BitSequenceLayout
CompactBigIntLayout
CompactBytes
CompactIntLayout
CompactLayout<T>
CompactOffsetLayout
ConditionalLazyLayout<T>
ConstantLayout<T>
A class representing a constant layout within a buffer.
COptionLayout<T>
CustomLayout<T, D>
DoubleLayout
Represents a layout for double-precision floating point numbers.
ExternalLayout
Represents an external layout.
ExternalOffsetLayout
GreedyCount
Represents a layout that greedily consumes bytes until the end.
IntegerLayout
Represents a layout for integers.
Layout<T>
Base class for layout objects.
LayoutConst
LayoutDecodeResult<T>
LayoutSerializationUtils
LazyLayout<T>
LazyStructLayout
  • fields : Initializer for fields. An error is raised if this contains a variable-length field for which a property is not defined.
  • property (optional): Initializer for property.
  • decodePrefixes (optional): Initializer for decodePrefixes.
  • LazyUnion
    LazyVariantLayout
    LazyVariantModel<T>
    MapEntryLayout
    Represents the layout for a key-value pair in a map.
    NoneLayout
    Represents a layout with no data.
    OffsetLayout
    Represents an offset layout.
    OptionalLayout<T>
    Represents a layout for optional values.
    PaddingLayout<T>
    RawBytesLayout
    A class representing a blob layout within a buffer.
    SequenceLayout<T>
    Represent a contiguous sequence of a specific layout as an Array.
    StructLayout
    Represent a contiguous sequence of arbitrary layout elements as an Object.
    TupleCompactLayout
    TupleLayout
    Represents a layout for tuples.
    Union
    Represent any number of span-compatible layouts.
    UnionDiscriminatorLayout
    Represents a union discriminator layout.
    UnionLayoutDiscriminatorLayout
    Represents a union layout discriminator.
    VariantLayout
    Represent a specific variant within a containing union.
    XDRBytesLayout
    A class representing a blob layout within a buffer.

    Enums

    LayoutAction

    Typedefs

    ConditionalLayoutFunc<T> = Layout<T> Function({required LayoutAction action, String? property, required int remindBytes, required T? sourceOrResult})
    GetLayoutSpan = List<int> Function(int)
    LayoutFunc<T> = Layout<T> Function({String? property})
    WrappedLayoutDecoder<T, D> = D Function(T value)
    Represents a custom layout with customized encoding and decoding functions.
    WrappedLayoutEncoder<T, D> = T Function(D source)

    Exceptions / Errors

    LayoutException