Rate This Document
Findability
Accuracy
Completeness
Readability

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

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.

dataLength

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.