Layout<T> class abstract

Base class for layout objects.

NOTE: This is an abstract base class; you can create instances if it amuses you, but they won't support the encode or decode functions.

  • span : Initializer for span. The parameter must be an integer; a negative value signifies that the span is value-specific.
  • property (optional): Initializer for property.
Implementers

Constructors

Layout(int span, {String? property})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
property → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
span → int
final

Methods

clone({String? newProperty}) → Layout
decode(LayoutByteReader bytes, {int offset = 0}) → LayoutDecodeResult<T>
deserialize(List<int> bytes) → LayoutDecodeResult<T>
encode(T source, LayoutByteWriter writer, {int offset = 0}) → int
getSpan(LayoutByteReader? bytes, {int offset = 0, T? source}) → int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(T source) → List<int>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited