Immutable bounded byte copy whose accounting outlives its payload.
More...
#include <document_export.hpp>
|
|
| ~DocumentCopy ()=default |
| | Destroy bytes before returning the retained credit.
|
| std::span< const std::byte > | bytes () const noexcept |
| DocumentRevision | revision () const noexcept |
Immutable bounded byte copy whose accounting outlives its payload.
◆ bytes()
| std::span< const std::byte > portals::DocumentCopy::bytes |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Borrowed immutable copied bytes; valid until this owning copy is released.
◆ revision()
- Returns
- Exact original source qualification.
◆ copyDocumentBytes
- Parameters
-
| source | Retained worker source. |
| range | Explicit range or known complete extent. |
| maxBytes | Positive output ceiling; default64KiB, independent of source size. |
| stop | Cooperative cancellation. |
- Returns
- Immutable owning bytes charged to the source budget, or typed failure. A range exceeding maxBytes is rejected before payload reads. An unknown open-ended range is unsupported; use an explicit range or streaming export. OS clipboard limits and delivery are the host's policy; this function does not write to the clipboard.
The documentation for this class was generated from the following file: