Agora Java API Reference for Android

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

`#include <AgoraBase.h>`

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

## Detailed Description

The definition of the Packet struct.

## 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.