write method

Uint8List write()

Implementation

Uint8List write() {
  final out = _MessageSink()..raw(_fileMagicPadded);
  final blocks = _writeMessages(out, ArrowTable(schema, batches), file: true);
  out.endOfStream();
  final footer = _FbWriter.encode(_footerTable(schema, blocks));
  out
    ..raw(footer)
    ..raw(_int32Bytes(footer.length))
    ..raw(_fileMagic);
  return out.takeBytes();
}