MxbsMemset

Function Usage

This function is used to configure memory.

You are advised to use MxbsMemset preferentially because Memset is the same as a system function name.

Prototype

static APP_ERROR MxbsMemset(MemoryData& data, int32_t value, size_t count);

Parameter Description

Parameter

Input/Output

Description

data

Input

Memory data to be configured The value range of data.size is [1, 1073741824].

value

Input

Value to be configured

count

Input

Length of the data to be configured. The length cannot be greater than the actual memory length. Otherwise, a core dump may occur.

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.