目录

GetSizeInBytes

Function Description

Obtains the total memory size occupied by data_type (number specified by element_count) based on the input element_count and data_type.

Function Prototype

int64_t GetSizeInBytes(int64_t element_count, DataType data_type)

Parameters

Parameter Input/Output Description
element_count Input Number of data types.
data_type Input Data type. For details, see DataType.

Return Value

If the number of input values is invalid or not supported, -1 is returned.

Exception Handling

None

Restrictions

None