RegisterVirtualFileFromStream
Document loading, Virtual files
Description
Registers an in-memory virtual file from a stream; same semantics as RegisterVirtualFile
Syntax
Delphi
Function RegisterVirtualFileFromStream(Const FileName: WideString; Source: TStream): Integer;Parameters
| FileName | Virtual file name |
|---|---|
| Source | Stream to read from; the bytes from the current position to the end become the file content |
Return values
| 1 on success, 0 when FileName is empty, Source is unassigned, the stream reports an invalid size or position, or the remaining byte count exceeds MaxInt; rejected oversized inputs are not read and keep their original position |