Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

DecodeQuicFrameSlice

function DecodeQuicFrameSlice(const aPacket: TBytes; var aOffset: Integer; out aFrame: tQuicFrame; out aDataOffset, aDataCount: Integer; aMaxAckRanges: Integer = 256): Boolean;
Parses and validates metadata and a borrowed Data slice without retaining aPacket. Data is empty; ACK/CID fields have bounded independent storage. The caller must keep the packet alive and all aliases read-only while using DataOffset/DataCount to read bytes. No slice bytes may escape that lifetime. Clean end/failure explicitly empties frame and offsets and leaves the cursor unchanged. Validation and distinct input/output rules match DecodeQuicFrame.