Synced
FileByteDocumentStore.Read
Section titled “FileByteDocumentStore.Read”
- Obtains a newly owned complete document snapshot.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.IO
Declaration
Section titled “Declaration”public byte[]? Inno.Core.IO.FileByteDocumentStore.Read()Returns
Section titled “Returns”Owned document bytes, or null when no document exists; an empty document remains distinct from absence.
Remarks
Section titled “Remarks”One rename-compatible handle pins the selected complete publication until its owned bytes are read. Writers must atomically replace the document rather than modify the selected file in place.
Exceptions
Section titled “Exceptions”Exception T:System.IO.IOException: The document cannot be read completely or exceeds the maximum supported byte-array size.
Exception T:System.UnauthorizedAccessException: The selected location denies reading or names a directory instead of a document.