solana/src/layout/layout library

Classes

BigIntLayout
Represents a layout for big integers.
Blob
A class representing a blob layout within a buffer.
Constant<T>
A class representing a constant layout within a buffer.
COptionPublicKeyLayout<T>
CString
A class representing a C-style string layout within a buffer.
CustomLayout<T, D>
DoubleLayout
Represents a layout for double-precision floating point numbers.
ExternalLayout
Represents an external layout.
GreedyCount
Represents a layout that greedily consumes bytes until the end.
IntegerLayout
Represents a layout for integers.
Layout<T>
Base class for layout objects.
LayoutByteWriter
A utility class for writing layout bytes dynamically.
LayoutSerializable
Abstract class for objects that can be serialized using a specific layout.
LayoutUtils
MapEntryLayout
Represents the layout for a key-value pair in a map.
None
Represents a layout with no data.
OffsetLayout
Represents an offset layout.
OptionalLayout<T>
Represents a layout for optional values.
ProgramLayout
Abstract class for Borsh serializable programs.
ProgramLayoutInstruction
Sequence<T>
Represent a contiguous sequence of a specific layout as an Array.
Structure
Represent a contiguous sequence of arbitrary layout elements as an Object.
TupleLayout
Represents a layout for tuples.
Union
Represent any number of span-compatible layouts.
UnionDiscriminator
Represents a union discriminator layout.
UnionLayoutDiscriminator
Represents a union layout discriminator.
UnknownProgramLayout
Represents an unknown program layout.
UTF8
A class representing a UTF-8 layout within a buffer.
VariantLayout
Represent a specific variant within a containing union.

Typedefs

WrappedLayoutDecoder<T, D> = D Function(T value)
Represents a custom layout with customized encoding and decoding functions.
WrappedLayoutEncoder<T, D> = T Function(D source)