ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
list_event_channels_response Struct Referencefinal

Response containing available event channels. More...

#include <subscription_protocol.hpp>

Collaboration diagram for list_event_channels_response:
Collaboration graph

Public Member Functions

std::vector< std::byte > serialize () const
 Serialize response to bytes.
 

Static Public Member Functions

static std::expected< list_event_channels_response, ores::utility::serialization::error_code > deserialize (std::span< const std::byte > data)
 Deserialize response from bytes.
 

Public Attributes

std::vector< eventing::domain::event_channel_infochannels
 List of available event channels.
 

Detailed Description

Response containing available event channels.

Member Function Documentation

◆ serialize()

std::vector< std::byte > serialize ( ) const

Serialize response to bytes.

Format:

  • 4 bytes: channel count
  • For each channel:
    • 2 bytes: name length
    • N bytes: name (UTF-8)
    • 2 bytes: description length
    • N bytes: description (UTF-8)