> 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::parse_native_buffer_policy

> Parse a native buffer policy string ("disabled", "preferred", "required") to the GXF enum.

```cpp showLineNumbers={false}
nvidia::gxf::NativeBufferPolicy holoscan::parse_native_buffer_policy(
    const std::string &policy_str
)
```

Parse a native buffer policy string ("disabled", "preferred", "required") to the GXF enum.

Defaults to kPreferred for unrecognized values.