Abstract write-buffer interface used by the actor transport layer. More...
#include <node.hpp>
Public Member Functions | |
| virtual std::span< char > | Acquire (size_t size)=0 |
Reserves size contiguous bytes in the buffer and returns a span over them. | |
| virtual void | Commit (size_t size)=0 |
Marks size previously acquired bytes as ready to send. | |
Abstract write-buffer interface used by the actor transport layer.
Follows an acquire/commit pattern: call Acquire to reserve contiguous space, write into it, then call Commit with the number of bytes actually written. This allows zero-copy serialization directly into network buffers.
|
pure virtual |
Reserves size contiguous bytes in the buffer and returns a span over them.
Implemented in NNet::NActors::TNode< TPoller >.
|
pure virtual |
Marks size previously acquired bytes as ready to send.
Implemented in NNet::NActors::TNode< TPoller >.