Sunshine master
Self-hosted game stream host for Moonlight.
platf::buffer_descriptor_t Struct Reference

Platform buffer pointer and size for batched socket sends. More...

#include <src/platform/common.h>

Public Member Functions

 buffer_descriptor_t (const char *buffer, size_t size)
 Describe a contiguous byte buffer for batched socket sending.
 

Public Attributes

const char * buffer
 Pointer to the payload buffer.
 
size_t size
 Size of the buffer in bytes.
 

Detailed Description

Platform buffer pointer and size for batched socket sends.

Constructor & Destructor Documentation

◆ buffer_descriptor_t()

platf::buffer_descriptor_t::buffer_descriptor_t ( const char * buffer,
size_t size )
inline

Describe a contiguous byte buffer for batched socket sending.

Parameters
bufferSerialized byte buffer to read from or write to.
sizeNumber of bytes or elements requested.

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