> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sdk-user-guide/_mcp/server.

# holoscan::utils::cuda::get_element_size

> Get the element size in bytes for a given data type.

```cpp showLineNumbers={false}
uint32_t holoscan::utils::cuda::get_element_size(
    BufferDataType data_type
) noexcept
```

Get the element size in bytes for a given data type.

**Returns:** Number of bytes per element

**Parameters**

**`data_type`** `BufferDataType`

The data type

---