2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-06-27 14:53:11 +00:00
This commit is contained in:
2022-03-28 20:18:32 +03:00
parent 47d2f7e923
commit 9be227a65e
8 changed files with 26 additions and 34636 deletions

View File

@ -353,7 +353,7 @@ class Codec {
IResource resource, DistributedConnection? connection) {
if (connection == null) return false;
if (resource is DistributedResource) {
if (resource.connection == connection) return true;
if (resource.distributedResourceConnection == connection) return true;
}
return false;
}

View File

@ -306,7 +306,7 @@ class DataSerializer {
var rt = new DC(4);
if (Codec.isLocalResource(resource, connection)) {
rt.setUint32(0, (resource as DistributedResource).id ?? 0);
rt.setUint32(0, (resource as DistributedResource).distributedResourceInstanceId ?? 0);
return DataSerializerComposeResults(
TransmissionTypeIdentifier.ResourceLocal, rt);
} else {

View File

@ -1,4 +1,3 @@
import 'IEnum.dart';
import '../Resource/Template/TemplateType.dart';
import 'IRecord.dart';
@ -35,7 +34,7 @@ class RepresentationTypeIdentifier {
Record = 0x15,
List = 0x16,
Map = 0x17,
Enum = 0x18,
Enum = 0x44,
TypedResource = 0x45, // Followed by UUID
TypedRecord = 0x46, // Followed by UUID
TypedList = 0x48, // Followed by element type