IDynamicBufferResource::download - dpw105f18/papago-api GitHub Wiki

Download entire dynamic buffer

template<typename T> std::vector<T> download()

Copies the data from the entire buffer into a vector and returns the vector.

Return

A vector filled with the data from the buffer formatted as type T

Download sub resource from dynamic buffer at index

template<typename T> T download(size_t index);

Copies the data from an element of the buffer onto the CPU and returns it

Return

Element at index formatted as type T

⚠️ **GitHub.com Fallback** ⚠️