Rate This Document
Findability
Accuracy
Completeness
Readability

SerializeToMemory

API Definition

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

Function

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

Parameters

Parameter

Data Type

Description

Value Range

dataPtr

uint8_t*&

Pointer to the memory start address of serialized data.

The value can only be a null pointer.

Length

size_t&

Length of serialized data memory.

The value can only be 0.

Return Value

Data Type

Description

int

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