load method
- Uint8List buffer
Restore marker collections from a previously serialized buffer.
Parameters
buffer: The binary buffer produced by save.
Returns
- A GemError code indicating success or the failure reason.
See also:
- save for obtaining a serialized buffer of the current marker collections.
Implementation
GemError load(Uint8List buffer) {
final dynamic dataBufferPointer = GemKitPlatform.instance.toNativePointer(
buffer,
);
final OperationResult resultString = objectMethod(
pointerId,
'MapViewMarkerCollections',
'load',
args: <String, dynamic>{
'dataBuffer': dataBufferPointer.address,
'dataBufferSize': buffer.length,
},
);
return GemErrorExtension.fromCode(resultString['result']);
}