imc_def_base library

Classes

BitfieldType
This is the base for Bitfield types
Builder<V extends Built<V, B>, B extends Builder<V, B>>
Every Built class has a corresponding Builder class.
BuilderWithInstanciator<V extends Built<V, B>, B extends Builder<V, B>>
This is to be used as interface for the builders
Built<V extends Built<V, B>, B extends Builder<V, B>>
Implement this for a Built Value.
BuiltValueToStringHelper
Interface for built_value toString() output helpers.
EnumType
This is the base for Enums types
Flags
This contains internal IMC flags for messages
ImcBuilderHeaderPart
Is a mixin in the messages to get and set header fields
ImcEntityId
This represents constants for Entities IDs
ImcField
This contains internal IMC field info
ImcId
This represents constants for systems IDs
ImcSerializer<M extends Message?, B>
This is the interface for serializing the IMC messages
ImcType
This contains internal IMC types for fields
IndentingBuiltValueToStringHelper
A BuiltValueToStringHelper that produces multi-line indented output.
Message
This is the base class for IMC messages

Extensions

ReverseSyncNumber on int

Constants

crcTable → const List<int>
footerSize → const int
headerSize → const int

Properties

endianSer Endian
To allow set the default serialization endianness CAREFUL: Set this before serializing any message, changing this midway may cause mix-endian messages.
getter/setter pair
newBuiltValueToStringHelper BuiltValueToStringHelperProvider
Function used by generated code to get a BuiltValueToStringHelper. Set this to change built_value class toString() output. Built-in examples are IndentingBuiltValueToStringHelper, which is the default, and FlatBuiltValueToStringHelper.
getter/setter pair

Functions

$jc(int hash, int value) int
For use by generated code in calculating hash codes. Do not use directly.
$jf(int hash) int
For use by generated code in calculating hash codes. Do not use directly.
calcAndAddFooter(ByteData byteData, int offset, int lenght) → void
calcCrc(ByteData byteData, int offset, int lenght) int
deserializeHeader(ImcBuilderHeaderPart builder, ByteData byteData, Endian endianness, [int headerStartoffset = 0]) int?
getCrcFooter(ByteData byteData, int offset, Endian endianness) int
getEndianness(ByteData byteData, [int offset = 0]) Endian?
getMessageIdFromHeaderIfSyncNumberOk(ByteData byteData, int offset) int?
serializeHeader(ImcMessage message, ByteData byteData) int
writePayloadSize(ByteData byteData, int payloadSize) → void

Typedefs

BuiltValueToStringHelperProvider = BuiltValueToStringHelper Function(String className)
Function that returns a BuiltValueToStringHelper.