ailiaOpenStreamMem method

int ailiaOpenStreamMem(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Void> buf,
  3. int buf_size
)

Initializes the network instance. (Read from memory)

Parameters:

  • net: A network instance pointer
  • buf: A pointer to the data in the prototxt file
  • buf_size: The data size of the prototxt file

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

This function reads the network instance from memory and initializes it.

Implementation

int ailiaOpenStreamMem(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.Void> buf,
  int buf_size,
) {
  return _ailiaOpenStreamMem(
    net,
    buf,
    buf_size,
  );
}