Agora Java API Reference for Android

Public Attributes | List of all members
agora::rtc::IPacketObserver::Packet Struct Reference

Configurations for the `Packet` instance. More...

`#include <AgoraBase.h>`

## Public Attributes
const unsigned char * | buffer
unsigned int | size

## Detailed Description

Configurations for the `Packet` instance.

## Member Data Documentation

## ◆ buffer

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

The buffer address of the sent or received data.

Note
  Agora recommends setting `buffer` to a value larger than 2048 bytes. Otherwise, you may encounter undefined behaviors (such as crashes).

## ◆ size

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

The buffer size of the sent or received data.