pub unsafe extern "C" fn ANeuralNetworksMemoryDesc_create(
desc: *mut *mut ANeuralNetworksMemoryDesc,
) -> c_intExpand description
Create a {@link ANeuralNetworksMemoryDesc} with no properties.
This only creates the memory descriptor. Its properties should be set with calls to {@link ANeuralNetworksMemoryDesc_addInputRole}, {@link ANeuralNetworksMemoryDesc_addOutputRole}, and {@link ANeuralNetworksMemoryDesc_setDimensions}.
{@link ANeuralNetworksMemoryDesc_finish} must be called once all properties have been set.
{@link ANeuralNetworksMemoryDesc_free} must be called once the memory descriptor is no longer needed.
Available since API level 30.
@param desc The {@link ANeuralNetworksMemoryDesc} to be created. Set to NULL if unsuccessful.
@return ANEURALNETWORKS_NO_ERROR if successful.