deserializeArray function
dynamic
deserializeArray(
- Type self,
- SerialBuffer buffer, {
- SerializerState? state,
- dynamic allowExtensions = true,
Implementation
deserializeArray(Type self, SerialBuffer buffer, {SerializerState? state, allowExtensions = true}) {
if (state == null) state = SerializerState();
var len = buffer.getVaruint32();
var result = [];
for (var i = 0; i < len; ++i) {
result.add(self.arrayOf!.deserialize?.call(self.arrayOf, buffer, state: state, allowExtensions: false));
}
return result;
}