deserialize static method
Deserializes a SubClassEntry from binary data starting at offset.
Returns the entry and the new offset.
Implementation
static (SubClassEntry, int) deserialize(List<int> data, int offset) {
final (parentQn, newOffset) = _readString(data, offset);
final childCount = data[newOffset];
var currentOffset = newOffset + 1;
final children = <String>[];
for (var i = 0; i < childCount; i++) {
final (child, nextOffset) = _readString(data, currentOffset);
children.add(child);
currentOffset = nextOffset;
}
return (
SubClassEntry(parentQualifiedName: parentQn, childQualifiedNames: children),
currentOffset,
);
}