Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::DocumentBytePage Class Reference

Immutable window sharing page credit until its final owner releases it. More...

#include <document_source.hpp>

Public Member Functions

 DocumentBytePage ()=default
 Empty allocation-free pin.
std::span< const std::byte > bytes () const noexcept
DocumentRevision revision () const noexcept
std::uint64_t offset () const noexcept
std::uint64_t generation () const noexcept
bool finalEnd () const noexcept

Friends

class ByteDocumentSource

Detailed Description

Immutable window sharing page credit until its final owner releases it.

Member Function Documentation

◆ bytes()

std::span< const std::byte > portals::DocumentBytePage::bytes ( ) const
noexcept
Returns
Initialized bytes valid for this pin's lifetime.

◆ finalEnd()

bool portals::DocumentBytePage::finalEnd ( ) const
noexcept
Returns
Definitive EOF after the returned prefix.

◆ generation()

std::uint64_t portals::DocumentBytePage::generation ( ) const
noexcept
Returns
Caller generation from the request.

◆ offset()

std::uint64_t portals::DocumentBytePage::offset ( ) const
noexcept
Returns
First byte offset.

◆ revision()

DocumentRevision portals::DocumentBytePage::revision ( ) const
noexcept
Returns
Exact revision, or zero for an empty pin.

The documentation for this class was generated from the following file: