THPDFASCII85DecodeInfo Record
回報解碼 ASCII85 串流時收集到的位元組數、EOD 結束碼偵測與分組進度
宣告
THPDFASCII85DecodeInfo= record
InputBytes: Int64;
OutputBytes: Int64;
TerminatorFound: boolean;
PartialGroupLength: Integer;
ZeroShortcutCount: Integer;
end;
單元
HPDFTypes
欄位
| 欄位 | 用途 |
|---|---|
InputBytes | 解碼器消耗的編碼輸入位元組數 |
OutputBytes | 寫入輸出串流的已解碼位元組數 |
TerminatorFound | 看到 ~> EOD 標記後為 True;設定 RequireTerminator 時,缺少標記會讓解碼器擲出錯誤 |
PartialGroupLength | 抵達結束碼時仍在等待的尾端不完整五字元群組長度 |
ZeroShortcutCount | 已處理的 z 零捷徑字元數 |
使用說明
- 連同已解碼輸出串流,以
Infoout 參數的形式傳給 HPDFASCII85DecodeStream - 已載入文件的 filter 鏈在展開
ASCII85Decode串流時,會先填入一個區域 record,再執行後續 filter - 以寬鬆結束碼原則解碼的串流,先檢查
TerminatorFound再信任其輸出