Funcția HPDFTransferStream
Transfers bytes from the current source position to the current destination position and avoids an intermediate copy for supported storage types
Declaration
function HPDFTransferStream(
Source, Destination: TStream;
Count: Int64 = -1): Int64;
Unit
HPDFObjs
Transfer paths
TMemoryStreamscrie direct din pointerul său de suport fără a aloca un buffer de transferTFileStreamscrie direct din vizualizări mapate doar în citire limitate și revine automat când maparea nu este disponibilăTHPDFMappedFileStreamșiTHPDFLazyFileStreamsusținut de sursă scriu direct din ferestre mapate rezidente- Fluxurile cu acces aleatoriu deleagă către
THPDFRandomAccessSource.TransferAt, în timp ceTHPDFCoalescingRandomAccessSourcescrie direct blocurile de cache reținute - Alte clase de fluxuri folosesc un buffer de rezervă limitat de 64 KiB
Count and positions
A Count of -1 transfers all bytes remaining from the current source position, zero transfers nothing, and a positive value is capped at the available bytes; values below -1 are rejected
Both stream positions advance by the number of bytes returned; source and destination must be different non-nil objects
PDF writer integration
Unencrypted PDF stream bodies, filter-free decoded output, raw loaded-image export, lazy-stream materialisation, and adaptive temporary-stream spill use this transfer layer automatically
Encrypted stream bodies still require transformation staging because their bytes and length change before serialization