parsePropertyValueArray static method
AsyncBag<PropertyValue>
parsePropertyValueArray(
- DC data,
- int offset,
- int length,
- DistributedConnection connection,
Implementation
static AsyncBag<PropertyValue> parsePropertyValueArray(DC data, int offset,
int length, DistributedConnection connection) //, bool ageIncluded = true)
{
//print("parsePropertyValueArray ${offset} ${length}");
var rt = new AsyncBag<PropertyValue>();
var sizeObject = new SizeObject();
while (length > 0) {
rt.add(parsePropertyValue(data, offset, sizeObject, connection));
if (sizeObject.size > 0) {
offset += sizeObject.size;
length -= sizeObject.size;
} else
throw new Exception("Error while parsing ValueInfo structured data");
}
rt.seal();
return rt;
}