bytes/byte_struct library
Classes
- Bool
- Represents a native bool in C.
-
ByteField<
V extends NativeType> - Typed Offset
-
ByteStructBase<
S extends ByteStructBase< S, K> , K extends ByteField<NativeType> > - Double
- Represents a native 64 bit double in C.
- Float
- Represents a native 32 bit float in C.
- Int16
- Represents a native signed 16 bit integer in C.
- Int32
- Represents a native signed 32 bit integer in C.
- Int64
- Represents a native signed 64 bit integer in C.
- Int8
- Represents a native signed 8 bit integer in C.
- NativeType
- NativeType's subtypes represent a native type in C.
- Struct
- The supertype of all FFI struct types.
- TypedDataBuffer
-
TypedDataBuffer -
BytesBuilderBuffereffectively, a fixed size BytesBuilder - allocated with a persistent buffer -
TypedField<
T extends NativeType> -
StructField/
NativeKey/StructKey, Typed 0,1,2,4,8 bytes - Uint16
- Represents a native unsigned 16 bit integer in C.
- Uint32
- Represents a native unsigned 32 bit integer in C.
- Uint64
- Represents a native unsigned 64 bit integer in C.
- Uint8
- Represents a native unsigned 8 bit integer in C.
Extension Types
- ByteForm
- ByteStruct
- ByteStruct is a TypedData with keyed/named access to fields. TypedData + [] Map operators returning int keyed view mixin keyed access for serialization map
Extensions
- ByteDataArrayAccess on ByteData
- ByteDataWordAccess on ByteData
- TypedDataCast on TypedData
-
/////////////////////////////////////////////////////////////////////////////
sublistView using length instead of
endEffectively moving up ByteBuffer layer, to TypedData view segment accounting forthis.offsetInBytes///////////////////////////////////////////////////////////////////////////// offsets in bytes for simplicity, correspond with ByteBuffer length using type size - TypedDataLength on TypedData
-
/////////////////////////////////////////////////////////////////////////////
implementations on TypedData returning as
thistype parameters in element size ofthistype ///////////////////////////////////////////////////////////////////////////// - TypedDataListSeek on T
- TypedList version of List<int>.skip
- TypedDataSlices on T
- Slices returning TypedData Slices on List cannot return TypedData
Functions
-
bytesPerElementOf<
T extends TypedData> () → int -
fromListInt<
T extends TypedDataList< (int> >List< int> elements) → T -
sublistView<
T extends TypedData> (TypedData data, [int start = 0, int? end]) → T -
GenericSublistView
offset in elements, type of
data, notTtype. -
typedList<
T extends TypedDataList> (int length) → T -
/////////////////////////////////////////////////////////////////////////////
Wrappers as top level functions
/////////////////////////////////////////////////////////////////////////////
length is in elements
same as
ByteData(length * bytesPerElementOf<T>())