Cold source; inspect/read reject its creating (UI) thread. Dispatch synchronous operations through the existing executor; no scheduler is created. One shared source serializes provider operations on workers. Separate sources sharing a provider require provider-level serialization. Pages can be retained by several views.
More...
#include <document_source.hpp>
Cold source; inspect/read reject its creating (UI) thread. Dispatch synchronous operations through the existing executor; no scheduler is created. One shared source serializes provider operations on workers. Separate sources sharing a provider require provider-level serialization. Pages can be retained by several views.
◆ budget()
| std::shared_ptr< SourceBudget > portals::ByteDocumentSource::budget |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Existing shared accounting root; no I/O or new allocation is performed.
◆ capabilities()
- Returns
- Captured capabilities without I/O.
◆ create()
- Parameters
-
| provider | Shared worker provider; creation invokes capabilities only. |
| budget | Existing root shared by views/replacement sources. |
| options | Bounded payload and metadata capacities. |
- Returns
- Cold source without open/metadata/read I/O, or typed failure.
◆ envelopeBytes()
| std::size_t portals::ByteDocumentSource::envelopeBytes |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Existing positive source/work metadata allowance; available on UI without I/O.
◆ inspect()
- Parameters
-
| stop | Cooperative cancellation. |
- Returns
- Qualified metadata, or worker-affinity/provider/cancellation failure.
◆ inspectEnd()
- Parameters
-
| stop | Cooperative cancellation, including provider extent discovery. |
- Returns
- Qualified metadata after optional worker-only end discovery, or typed failure. Providers without this capability retain the ordinary inspect behavior.
◆ maxPageBytes()
| std::size_t portals::ByteDocumentSource::maxPageBytes |
( |
| ) |
const |
|
noexcept |
- Returns
- Immutable maximum read payload.
◆ pinnedBudgetBytes()
| std::size_t portals::ByteDocumentSource::pinnedBudgetBytes |
( |
| ) |
const |
|
noexcept |
- Returns
- Nonblocking provider-owned mandatory bytes on this source's root; excludes source/page/view storage.
◆ read()
- Parameters
-
| request | Exact bounded window and caller generation. |
| stop | Cooperative cancellation; late cancellation discards the page. |
- Returns
- Owning page or typed failure; no publication/callback occurs here.
◆ stamp()
| SourceStamp portals::ByteDocumentSource::stamp |
( |
| ) |
const |
|
noexcept |
- Returns
- Immutable namespace, available without I/O.
◆ tryReleaseOptionalStorage()
| bool portals::ByteDocumentSource::tryReleaseOptionalStorage |
( |
| ) |
|
|
noexcept |
- Returns
- Whether bounded optional provider storage was reclaimed without I/O or blocking.
The documentation for this class was generated from the following file: