COROIO: NNet::NActors::TBlob Struct Reference
COROIO
 
Loading...
Searching...
No Matches
NNet::NActors::TBlob Struct Reference

Opaque message payload with Near/Far duality. More...

#include <messages.hpp>

Public Types

enum class  PointerType { Near , Far }
 
using TRawPtr = std::unique_ptr< void, TBlobDeleter >
 

Public Attributes

TRawPtr Data = {}
 Owned payload (Near: object ptr; Far: byte buffer)
 
uint32_t Size = 0
 Payload size in bytes (0 for empty/sentinel blobs)
 
enum NNet::NActors::TBlob::PointerType Type
 

Detailed Description

Opaque message payload with Near/Far duality.

Wraps an arbitrary message value for routing through the actor system. Two modes exist depending on whether the message stays in-process or crosses a node boundary:

  • Near — a live C++ object pointer. Zero-copy for local delivery. POD types use a pool allocator; non-POD types use new.
  • Far — a flat byte buffer for network transmission. POD: the Near pointer is reused as-is (bytes are already contiguous). Non-POD: produced by SerializeToStream / SerializeFarInplace.

Move-only; owns the payload via TRawPtr.

Member Enumeration Documentation

◆ PointerType

Enumerator
Near 

Live object pointer — valid only within the same process.

Far 

Serialized byte buffer — safe to copy across the network.


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