Agora C++ API Reference for All Platforms
agora::rtc::IPacketObserver::Packet Struct Reference

#include <IAgoraRtcEngine.h>

Public Attributes

const unsigned char * buffer
unsigned int size

Detailed Description

Definition of Packet.

Member Data Documentation

◆ buffer

const unsigned char* agora::rtc::IPacketObserver::Packet::buffer

Buffer address of the sent or received data.

Agora recommends that the value of buffer is more than 2048 bytes, otherwise, you may meet undefined behaviors such as a crash.

◆ size

unsigned int agora::rtc::IPacketObserver::Packet::size

Buffer size of the sent or received data.