Function Snpe_IUserBuffer_SetBufferAddress

Function Documentation

int Snpe_IUserBuffer_SetBufferAddress(Snpe_IUserBuffer_Handle_t userBufferHandle, void *buffer)

Changes the underlying memory that backs the UserBuffer.

This can be used to avoid creating multiple UserBuffer objects when the only thing that differs is the memory location.

Parameters
  • userBufferHandle[in] : Handle to access the UserBuffer

  • buffer[in] : Pointer to the memory location

Returns

Whether the set succeeds.