/workspaces/astro/sol3-sdk/cpp/sol3/core/any_message_input.h Source File
|
Space-ng SDK
|
any_message_input.h
Go to the documentation of this file.
Definition: any_message_input.h:29
size_t readInto(uint64_t seq, flatbuffers::span< uint8_t > dest, std::chrono::steady_clock::duration time_out={})
uint64_t head() const
The current latest sequence number, or 0 if no messages.
bool pollForBufferUpdate()
Return true if the underlying buffer has been updated and is valid.
AnyMessageView read(uint64_t seq, std::chrono::steady_clock::duration time_out={})
MessagePort port() const
The message port associated with this input.
AnyMessageInput(AnyMessageInput &&rhs)=delete
MessageSchema const & schema() const
IBufferExchange::Endpoint const & endpoint() const
size_t slotSize() const
Maximum slot size in bytes in the underlying sequence ring.
AnyMessageInput(IBufferExchange &exchange, IBufferExchange::Endpoint endpoint, MessagePort port, MessageSchema expected_schema=MessageSchema())
AnyMessageInput & operator=(AnyMessageInput &&rhs)=delete
~AnyMessageInput()=default
AnyMessageInput & operator=(AnyMessageInput const &rhs)=delete
size_t readInto(uint64_t seq, IStreamWriter &stream, std::chrono::steady_clock::duration time_out={})
size_t slotCount() const
Number of slots in the underlying sequence ring.
AnyMessageInput(AnyMessageInput const &)=delete
AnyMessageInput(IBufferExchange &exchange, MessagePort port, MessageSchema expected_schema)
AnyMessageView readHead(std::chrono::steady_clock::duration time_out={})
void updateSchema(MessageSchema const &schema)
Definition: any_message_view.h:24
Interface for registering, discovering, and disposing shared buffers.
Definition: shmem_buffer.h:112
boost::asio::local::datagram_protocol::endpoint Endpoint
Definition: shmem_buffer.h:114
Minimal append-only byte sink for streaming writes.
Definition: stream_writer.h:9
Definition: message_port.h:19
Definition: message_schema.h:12
Definition: seq_ring.h:176
Definition: any_message_input.h:15
Generated by