setBinaryData

Navigation:  NxLib API > C++ Interface > NxLibItem >

setBinaryData

Previous pageReturn to chapter overviewNext page

Sets data of a Binary item.

The data format must be identical to the current format of the binary node. The current format can be queried using getBinaryDataInfo. The time stamp of the node will be set to the current UTC time.

Signatures

Variants throwing exceptions on API errors:

void setBinaryData(void onst* bufferPointer, int bufferSize) const

template <typename T> void setBinaryData(std::vector<T> const& bufferVector) const

void setBinaryData(cv::Mat const& cvMat) const

Variants returning API errors as int* parameter:

void setBinaryData(int* returnCode, void const* bufferPointer, int bufferSize) const

template <typename T> void setBinaryData(int* returnCode, std::vector<T> const& bufferVector) const

void setBinaryData(int* returnCode, cv::Mat const& cvMat) const

Parameters

returnCode

The error code returned when accessing the item.

bufferPointer

Pointer to a buffer where the binary data will be copied from.

bufferSize

Size of the data to be copied in bytes.

bufferVector

A std::vector from which the binary data should be copied.

cvMat

An OpenCV matrix that should be copied to the binary node. OpenCV interface functions are only available when CV_MAJOR_VERSION is defined while compiling the nxLibFunctions.h header file.

Return Value

none