---
title: GetByteSize
description: "用于获取buffer字节数据量。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0431.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0431.html
indexId: b17a49a954d1abbd7c15cce5dae1fa647e2e7e9834c789b85c153da9ee3f0372102
---
# GetByteSize

#### 函数功能

用于获取buffer字节数据量。


#### 函数原型

```
size_t GetByteSize() const;
```


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| size\_t | 返回具体数值。 |
