我要评分
获取效率
正确性
完整性
易理解

SerializeToMemory

API Definition

int ScannInterface::SerializeToMemory(uint8_t*& dataPtr, size_t& dataLength);

Function

Serializes the index into memory where the memory length is dataLength (bytes) and the start address is dataPtr (KScaNN-specific addition).

Parameters

Parameter

Description

Data Type

Value Range

dataPtr

Pointer to the memory start address of serialized data.

uint8_t*&

The value can only be a null pointer.

dataLength

Length of serialized data memory.

size_t&

The value can only be 0.

Return Value

Data Type

Description

int

If the execution is successful, 0 is returned. Otherwise, −1 is returned.