For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Introduction
    • Overview
    • Relevant Technologies
    • Getting Started
  • Setup
    • SDK Installation
    • Additional Setup
    • Third Party Hardware Setup
  • Using the SDK
    • Holoscan Core
    • GPU Resident Execution
    • Holoscan by Example
    • Create an Application
    • Create a Distributed Application
    • Create an Operator
    • Create an Operator via Decorator
    • Create a Condition
    • Dynamic Flow Control
    • CUDA Stream Handling
    • Logging
    • Data Logging
    • Debugging
    • Python Operator Bindings
  • Operators
    • Operators and Extensions
    • Visualization
    • Inference
    • Testing
    • Video I/O Vendor Implementation Guide
  • Components
    • Schedulers
    • Conditions
    • Resources
    • Analytics
  • AI Skills
    • Ai Skills
  • API reference
                  • Buffer
                  • CudaAllocator
                  • CudaFree
                  • CudaHostFree
                  • CudaHostMappedAllocator
                  • CudaHostMappedBuffer
                  • DeviceBuffer
  • Performance
    • Performance Considerations
    • Flow Tracking
    • GXF Job Statistics
    • Nsight Profiling
  • HoloHub
    • HoloHub Overview
  • FAQ
    • FAQ
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogoDocumentation
On this page
  • Constructors
  • CudaHostMappedBuffer
  • Destructor
  • ~CudaHostMappedBuffer
  • Methods
  • data
  • size
  • get_bytes
  • resize
  • device_data
  • get_datatype
  • get_device
  • Member variables
API referenceC++ APIHoloscanNamespacesUtilsNamespacesCudaClasses

holoscan::utils::cuda::CudaHostMappedBuffer

Beta
||View as Markdown|
Previous

holoscan::utils::cuda::CudaHostMappedAllocator

Next

holoscan::utils::cuda::DeviceBuffer

CUDA Host Mapped Buffer Class.

#include <holoscan/utils/cuda/buffer.hpp>

Inherits from: holoscan::utils::cuda::Buffer (public)


Constructors

CudaHostMappedBuffer

holoscan::utils::cuda::CudaHostMappedBuffer::CudaHostMappedBuffer(holoscan::utils::cuda::CudaHostMappedBuffer::CudaHostMappedBuffer(
size_t size,
int device_id = 0
)

Construct a new Cuda Host Mapped Buffer object.

Destructor

~CudaHostMappedBuffer

holoscan::utils::cuda::CudaHostMappedBuffer::~CudaHostMappedBuffer()holoscan::utils::cuda::CudaHostMappedBuffer::~CudaHostMappedBuffer()

Methods

data

void * holoscan::utils::cuda::CudaHostMappedBuffer::data() override

Get the data buffer.

Returns: Void pointer to the buffer

size

size_t holoscan::utils::cuda::CudaHostMappedBuffer::size() const override

Get the size of the allocated buffer in elements.

Returns: size in elements

get_bytes

size_t holoscan::utils::cuda::CudaHostMappedBuffer::get_bytes() const override

Get the bytes allocated.

Returns: allocated bytes

resize

void holoscan::utils::cuda::CudaHostMappedBuffer::resize(
size_t number_of_elements
) override

Resize the underlying buffer.

Parameters

number_of_elements
size_t

Number of elements to be resized with

device_data

void * holoscan::utils::cuda::CudaHostMappedBuffer::device_data() const

get_datatype

BufferDataType holoscan::utils::cuda::CudaHostMappedBuffer::get_datatype() constBufferDataType holoscan::utils::cuda::CudaHostMappedBuffer::get_datatype() const

Get the datatype.

Returns: datatype

get_device

int holoscan::utils::cuda::CudaHostMappedBuffer::get_device() const

Get the device ID.

Returns: device ID


Member variables

NameTypeDescription
size_size_t
capacity_size_t
buffer_void *
device_buffer_void *
allocator_CudaHostMappedAllocator
free_CudaHostFree
data_type_BufferDataTypeDatatype of the elements in the buffer.
device_id_intDevice ID.