serializeArray function
dynamic
serializeArray(
- Type self,
- SerialBuffer buffer,
- dynamic data, {
- SerializerState? state,
- dynamic allowExtensions = true,
Implementation
serializeArray(Type self, SerialBuffer buffer, dynamic data, {SerializerState? state, allowExtensions = true}) {
if (state == null) state = SerializerState();
buffer.pushVaruint32((data as List).length);
for (var item in data) {
self.arrayOf!.serialize?.call(self.arrayOf, buffer, item, state: state, allowExtensions: false);
}
}