Codec class
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
Static Methods
-
compareRecords(IRecord? initial, IRecord? next)
→ int
-
Compare two records
-
compareResources(IResource? initial, IResource? next, DistributedConnection connection)
→ int
-
Compare two resources
-
compareStructures(Structure? initial, Structure? next, DistributedConnection connection)
→ int
-
Compare two structures
-
compose(dynamic value, DistributedConnection connection, [bool prependType = true])
→ DC
-
Compose a variable
-
composeHistory(KeyList<PropertyTemplate, List<PropertyValue>> history, DistributedConnection connection, [bool prependLength = false])
→ DC
-
Compose resource history
-
composePropertyValue(PropertyValue propertyValue, DistributedConnection connection)
→ DC
-
Compose a property value.
-
composePropertyValueArray(List<PropertyValue> array, DistributedConnection connection, [bool prependLength = false])
→ DC
-
Compose an array of property values.
-
composeRecord(IRecord record, DistributedConnection connection, [bool includeClassId = true, bool prependLength = false])
→ DC
-
-
composeRecordArray<T extends IRecord>(List<T>? records, DistributedConnection connection, [bool prependLength = false])
→ DC
-
-
composeResource(IResource resource, DistributedConnection connection)
→ DC
-
Compose a resource
-
composeResourceArray<T extends IResource>(List<T>? resources, DistributedConnection connection, [bool prependLength = false])
→ DC
-
Compose an array of resources
-
composeStructure(Structure value, DistributedConnection connection, [bool includeKeys = true, bool includeTypes = true, bool prependLength = false])
→ DC
-
Compose a structure into an array of bytes
-
composeStructureArray(List<Structure>? structures, DistributedConnection connection, [bool prependLength = false])
→ DC
-
Compose an array of structures into an array of bytes
-
composeVarArray(List array, DistributedConnection connection, [bool prependLength = false])
→ DC
-
Compose an array of variables
-
getDataType(dynamic value, DistributedConnection connection)
→ int
-
Get the DataType of a given value.
This function is needed to compose a value.
-
getElementType(int type)
→ int
-
Get the element DataType
-
getStructureDateTypes(Structure structure, DistributedConnection connection)
→ List<int>
-
Get DataType array of a given Structure
-
implementsInterface<type, ifac>()
→ bool
-
Check if a type implements an interface
-
isArray(int type)
→ bool
-
Check if a DataType is an array
-
isLocalResource(IResource resource, DistributedConnection connection)
→ bool
-
Check if a resource is local to a given connection.
-
parse(DC data, int offset, DistributedConnection connection, [SizeObject? sizeObject, int dataType = DataType.Unspecified])
→ AsyncReply
-
Parse a value
-
parseDistributedResource(DC data, int offset, DistributedConnection connection)
→ AsyncReply<DistributedResource>
-
Parse a DistributedResource
-
parseHistory(DC data, int offset, int length, IResource resource, DistributedConnection connection)
→ AsyncReply<KeyList<PropertyTemplate, List<PropertyValue>>>
-
Parse resource history
-
parsePropertyValue(DC data, int offset, SizeObject sizeObject, DistributedConnection connection)
→ AsyncReply<PropertyValue>
-
Parse property value.
-
parsePropertyValueArray(DC data, int offset, int length, DistributedConnection connection)
→ AsyncBag<PropertyValue>
-
Parse an array of PropertyValue.
-
parseRecord(DC data, int offset, int length, DistributedConnection connection, [Guid? classId = null])
→ AsyncReply<IRecord>
-
-
parseRecordArray(DC data, int offset, int length, DistributedConnection connection)
→ AsyncBag<IRecord?>
-
-
parseResource(DC data, int offset)
→ AsyncReply<IResource?>
-
Parse a resource
-
parseResourceArray(DC data, int offset, int length, DistributedConnection connection)
→ AsyncBag<IResource?>
-
Parse an array of bytes into array of resources
-
parseStructure(DC data, int offset, int length, DistributedConnection connection, [StructureMetadata? metadata = null, List<String>? keys = null, List<int>? types = null])
→ AsyncReply<Structure>
-
Parse a structure
-
parseStructureArray(DC data, int offset, int length, DistributedConnection connection)
→ AsyncBag<Structure?>
-
Parse an array of structures
-
parseVarArray(DC data, int offset, int length, DistributedConnection connection)
→ AsyncBag
-
Parse an array of bytes into an array of varialbes.