Updated on 2022-03-13 GMT+08:00

CopyFrom

Function Prototype

static Buffer CopyFrom(std::uint8_t* data, std::size_t bufferSize);

Function Description

Copies bufferSize based on the address to which the pointer in data points, and saves the data address to buffer.

Parameter Description

Parameter

Input/Output

Type

Description

data

Input

uint8_t*

Pointer to the data to be copied

bufferSize

Input

size_t

Size of the data to be copied

Return Value

Parameter

Type

Description

-

Buffer

Buffer object for storing the copied data

Exception Handling

None

Restriction

None