def seek.block.ready
mylsm-lsm-store@0.6.0.1 · src/scan/ByteBlockReader.bend:502
import mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader.bend as ByteBlockReader
import Base
502def seek.block.ready(
503 file: File,
504 state: State,
505 index: U32,
506 offset: U32,
507 valid: Bool
508) -> IO(Result<&1, &1, U32 & String, Reader>):
509 match state:
510 case State{size, header, index_offset, _, total, block_count, _, _,
511 root_hash, index_hash, _, _}:
512 seek.block.construct(file, size, header, index_offset, total,
513 block_count, root_hash, index_hash, index, offset, valid)