pub fn decode_wal_buffer(buffer: &[u8]) -> Result<Vec<WALRecord>>Expand description
Decode a bulk-copied LocalWALData payload back into individual records.
The buffer uses the same tag format as the WAL file itself (written by
LocalWAL::write_record); decoding lets recovery replay SQL-path DML that
arrives inside a single blob record (P60.2). Trailing garbage stops the
decode with an error; callers decide whether to skip or fail.