Portals 0.7.0 · dev0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ByteDocumentProvider Class Referenceabstract
Read-only worker provider; callers serialize operations using the existing executor. Provider/domain storage is external to page accounting, as with WindowProvider. No destination or mutable alias may escape read().
More...
Read-only worker provider; callers serialize operations using the existing executor. Provider/domain storage is external to page accounting, as with WindowProvider. No destination or mutable alias may escape read().
Cooperative cancellation of worker-only extent discovery.
Returns
Current revision and optional extent, or typed failure. The default only observes metadata. Adapters may discover their exact end using bounded storage without formatting document content; an unknown extent remains valid. The source serializes this operation with metadata/read and discards late cancellation.
Optional bounded read session, or UNSUPPORTED without opening the source. Appended capability; ordinary metadata/read remain unchanged for other providers.
Credit root whose mandatory retained bytes are observed.
Returns
Thread-safe allocation-free snapshot of provider-owned pinned bytes on that root. Excludes optional cache and source/view credits counted by their owners. No I/O or blocking lock is allowed.
Whether optional storage was released without changing document data or navigation state. Thread-safe, bounded and nonblocking; no I/O, decoding, allocation or user callback is allowed. A busy implementation may defer the request to its current worker before that worker completes.