LayoutUtils class

Constructors

LayoutUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

array(Layout elementLayout, int length, {String? property}) CustomLayout
arrays
blob(dynamic length, {String? property}) Blob
Blob values.
boolean({String? property, Layout<int>? layout}) CustomLayout
bool values
boolean32([String? property]) CustomLayout
bool 4 bytes values
constant(dynamic value, {String? property}) Constant
Constant values.
cOptionalPublicKey({String? property, bool keepSize = false, Layout? discriminator}) COptionPublicKeyLayout
cstr([String? property]) CString
CString values.
f32([String? property]) DoubleLayout
DoubleLayout (little-endian 32-bit floating point) values.
f32be([String? property]) DoubleLayout
DoubleLayout (big-endian 32-bit floating point) values.
f64([String? property]) DoubleLayout
DoubleLayout (little-endian 64-bit floating point) values.
f64be([String? property]) DoubleLayout
DoubleLayout (big-endian 64-bit floating point) values.
greedy({int elementSpan = 1, String? property}) GreedyCount
GreedyCount.
greedyArray(Layout elementLayout, {String? property}) CustomLayout
arrays with greedy size layout.
i128([String? property]) BigIntLayout
BigIntLayout (little-endian signed int layouts) interpreted as Numbers.
i16([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning two bytes.
i24([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning three bytes.
i32([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning four bytes.
i40([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning five bytes.
i48([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning six bytes.
i64([String? property]) BigIntLayout
BigIntLayout (little-endian signed int layouts) interpreted as Numbers.
i8([String? property]) IntegerLayout
IntegerLayout (signed int layouts) spanning one byte.
map(Layout keyLayout, Layout valueLayout, {String? property}) CustomLayout
map values
nameWithProperty(String name, Layout? lo) String
none([String? property]) None
no data values
ns64([String? property]) BigIntLayout
BigIntLayout (little-endian signed int layouts) interpreted as Numbers.
ns64be([String? property]) BigIntLayout
BigIntLayout (big-endian signed int layouts) interpreted as Numbers.
nu64([String? property]) BigIntLayout
BigIntLayout (little-endian unsigned int layouts) interpreted as Numbers.
nu64be([String? property]) BigIntLayout
BigIntLayout (big-endian unsigned int layouts) interpreted as Numbers.
offset(Layout layout, int offset, [String? property]) OffsetLayout
OffsetLayout.
optional(Layout layout, {String? property, bool keepSize = false, Layout? discriminator}) OptionalLayout
OptionalLayout
optionPubkey({String? property, bool keepSize = false, Layout? discriminator}) OptionalLayout
optional SolAddress values.
optionU64([String? property]) OptionalLayout
optional BigIntLayout (little-endian unsigned int layouts) interpreted as Numbers.
publicKey([String? property]) CustomLayout
SolAddress values.
rustEnum(List<Layout> variants, Layout? discriminant, {String? property}) Layout
enum values
rustString([String? property]) → dynamic
Rust String values.
rustVec(Layout elementLayout, {String? property}) CustomLayout
factory for Rust vectors
rustVecU8([String? property]) CustomLayout
Rust vector values
s16([String? property]) IntegerLayout
IntegerLayout (little-endian signed int layouts) spanning two bytes.
s16be([String? property]) IntegerLayout
IntegerLayout (big-endian signed int layouts) spanning two bytes.
s24([String? property]) IntegerLayout
IntegerLayout (little-endian signed int layouts) spanning three bytes.
s24be([String? property]) IntegerLayout
IntegerLayout (big-endian signed int layouts) spanning three bytes.
s32([String? property]) IntegerLayout
IntegerLayout (little-endian signed int layouts) spanning four bytes.
s32be([String? property]) IntegerLayout
IntegerLayout (big-endian signed int layouts) spanning four bytes.
s40([String? property]) IntegerLayout
IntegerLayout (little-endian signed int layouts) spanning five bytes.
s40be([String? property]) IntegerLayout
IntegerLayout (big-endian signed int layouts) spanning five bytes.
s48([String? property]) IntegerLayout
IntegerLayout (little-endian signed int layouts) spanning six bytes.
s48be([String? property]) IntegerLayout
IntegerLayout (big-endian signed int layouts) spanning six bytes.
s8([String? property]) IntegerLayout
IntegerLayout (signed int layouts) spanning one byte.
seq<T>(Layout elementLayout, Layout count, {String? property}) Sequence
Sequence values.
string([String? property]) → dynamic
String values
struct(List<Layout> fields, [String? property, bool decodePrefixes = false]) Structure
Structure values.
tuple(List<Layout> layouts, {String? property}) TupleLayout
tuple values
u128([String? property]) BigIntLayout
BigIntLayout (little-endian unsigned int layouts) interpreted as Numbers.
u16([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning two bytes.
u16be([String? property]) IntegerLayout
IntegerLayout (big-endian unsigned int layouts) spanning two bytes.
u24([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning three bytes.
u24be([String? property]) IntegerLayout
IntegerLayout (big-endian unsigned int layouts) spanning three bytes.
u32([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning four bytes.
u32be([String? property]) IntegerLayout
IntegerLayout (big-endian unsigned int layouts) spanning four bytes.
u40([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning five bytes.
u40be([String? property]) IntegerLayout
IntegerLayout (big-endian unsigned int layouts) spanning five bytes.
u48([String? property]) IntegerLayout
IntegerLayout (little-endian unsigned int layouts) spanning six bytes.
u48be([String? property]) IntegerLayout
IntegerLayout (big-endian unsigned int layouts) spanning six bytes.
u64([String? property]) BigIntLayout
BigIntLayout (little-endian unsigned int layouts) interpreted as Numbers.
u8([String? property]) IntegerLayout
IntegerLayout (unsigned int layouts) spanning one byte.
union(dynamic discr, {Layout? defaultLayout, String? property}) Union
Union values.
unionLayoutDiscriminator(ExternalLayout layout, {String? property}) UnionLayoutDiscriminator
UnionLayoutDiscriminator values.
utf8({int? maxSpan, String? property}) UTF8
UTF8 values.
vec(Layout elementLayout, {String? property}) CustomLayout
vectors
vecU8([String? property]) CustomLayout
vector bytes
wrap(Layout layout, {String? property}) Layout
wrap layouts for property handling