# Packet (/zh-CN/api-reference/rtc/unreal-cpp/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;
Packet() : buffer(NULL), size(0) {}
};
```
## 属性 [#属性]
需要发送或接收的数据的缓存地址。
:::caution
注意: 建议 buffer 值不要小于 2048 字节,否则有可能会出现未定义行为(例如崩溃)。
:::
将要发送或接收的数据的缓存大小。