fn lz4_workspace_size(input: &[u8]) -> PgWireResult<u64>Expand description
lz4_flex 0.14 allocates a source block plus a destination block; linked mode uses two destination blocks and a 64 KiB history window. Admission must cover these allocations even when the IPC prefix claims just one byte of output. See the LZ4 frame specification’s magic, FLG and BD fields and lz4_flex::frame::FrameDecoder::read_frame_info. Keep this calculation in sync with the pinned decoder version used by Arrow.