def record.value.finished
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWalimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
176# Advances from a copied value to a completed put record.
177def record.value.finished(
178 frame: Bytes.Bytes,
179 value: Bytes.Bytes,
180 value_offset: U32,
181 +value_length: U32
182) -> DecodedRecord:
183 match frame:
184 case Bytes.Bytes{len, buf}:
185 RecordDone{Bytes.Bytes{len, buf}, (value_offset + value_length : U32),
186 Put{Bytes.new(0), value}}