# Packet (/zh-CN/api-reference/rtc/cpp-all-platforms/class-packet)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```cpp
struct Packet {
const unsigned char* buffer;
unsigned int size;
};
```
## 属性 [#属性]
发送或接收数据的缓冲区地址。
:::note
注: 声网建议将 `buffer` 设置为大于 2048 字节的值。否则,可能会遇到未定义行为(如崩溃)。
:::
发送或接收数据的缓冲区大小。