writeTiles method

Future<void> writeTiles(
  1. bool debugFile,
  2. SinkWithCounter ioSink
)

Writes all tile data for this sub-file to the given ioSink.

Implementation

Future<void> writeTiles(bool debugFile, SinkWithCounter ioSink) async {
await _processAsync("writing tiles", (tile) async {
  Uint8List contentForTile = await tileBuffer.getAndRemove(tile);
  ioSink.add(contentForTile);
});
  }