THPDFDirectTransferStream Class
Defines the abstract zero-copy transfer contract used by source-backed and temporary streams
Declaration
THPDFDirectTransferStream= class(TStream)
public
function TransferTo(Destination: TStream; Count: Int64): Int64;
virtual; abstract;
end;
Unit
HPDFObjs
Usage notes
- Override TransferTo to copy exactly Count bytes directly to the destination stream without materializing an intermediate buffer
- Implementations return the number of bytes transferred and must preserve normal TStream position and exception behavior