appendBatchSync method
Appends ops as one batch frame.
Encodes straight into the frame scratch: one allocation-free batch, one checksum pass and one file append.
Implementation
void appendBatchSync(List<WalOp> ops) {
final payloadSize = WalBatch.encodedSize(ops);
_ensureScratch(walHeaderSize + payloadSize);
final end = WalBatch.encodeInto(_scratch, walHeaderSize, ops);
_commitSync(end);
}