Sunshine master
Self-hosted game stream host for Moonlight.
video::packet_raw_t::replace_t Struct Reference

Packet byte-range replacement descriptor. More...

#include <src/video.h>

Public Member Functions

replace_toperator= (replace_t &&) noexcept=default
 Defaulted move assignment for the generated type. * *.
 
 replace_t (replace_t &&) noexcept=default
 Defaulted move constructor for the generated type.

 
 replace_t (std::string_view old, std::string_view _new) noexcept
 Store an encoded-byte replacement rule.
 

Public Attributes

std::string_view _new
 Byte sequence that replaces old before transmission.
 
std::string_view old
 Byte sequence to find in the encoded packet.
 

Detailed Description

Packet byte-range replacement descriptor.

Constructor & Destructor Documentation

◆ replace_t() [1/2]

video::packet_raw_t::replace_t::replace_t ( replace_t && )
defaultnoexcept

Defaulted move constructor for the generated type.

◆ replace_t() [2/2]

video::packet_raw_t::replace_t::replace_t ( std::string_view old,
std::string_view _new )
inlinenoexcept

Store an encoded-byte replacement rule.

Parameters
oldByte sequence to replace in encoded packets.
_newReplacement byte sequence inserted into encoded packets.

Member Function Documentation

◆ operator=()

replace_t & video::packet_raw_t::replace_t::operator= ( replace_t && )
defaultnoexcept

Defaulted move assignment for the generated type. * *.

  • Returns
    This instance.

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