writeArray<T> method
Implementation
void writeArray<T>(List<T> array, void Function(T) func,
{int? specArrayLen}) {
final arrayLen = array.length;
if (specArrayLen == null || specArrayLen < 0) {
writeUint32(arrayLen);
}
array.forEach(func);
}