deserializeCommands function
Reconstructs the command buffer written by serializeCommands.
Implementation
List<PdfRenderCommand> deserializeCommands(Uint8List bytes) {
final sw = Stopwatch()..start();
final r = _Reader(bytes);
final version = r.u8();
assert(version == _formatVersion, 'render command format version mismatch');
final commands = _readCommands(r);
deserializeCommandsMicros += sw.elapsedMicroseconds;
return commands;
}