ailiaOpenStreamEx method

int ailiaOpenStreamEx(
  1. Pointer<AILIANetwork> net,
  2. Pointer<Void> fopen_args,
  3. ailiaFileCallback callback,
  4. int version
)

~japanese @brief ネットワークオブジェクトを初期化します。(ユーザ定義ファイルアクセスコールバック) @param net ネットワークオブジェクトポインタ @param fopen_args \ref AILIA_USER_API_FOPEN に通知される引数ポインタ @param callback ユーザ定義ファイルアクセスコールバック関数構造体 @param version ファイルアクセスコールバック関数構造体のバージョン( \ref AILIA_FILE_CALLBACK_VERSION ) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details ファイルから読み込み、ネットワークオブジェクトを初期化します。

~english @brief Initializes the network instance. (User-defined file access callback) @param net A network instance pointer @param fopen_args An argument pointer supplied by AILIA_USER_API_FOPEN @param callback A struct for the user-defined file access callback function @param version The version of the struct for the file access callback function ( \ref AILIA_FILE_CALLBACK_VERSION ) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details This function reads the network instance from a file and initializes it.

Implementation

int ailiaOpenStreamEx(
  ffi.Pointer<AILIANetwork> net,
  ffi.Pointer<ffi.Void> fopen_args,
  ailiaFileCallback callback,
  int version,
) {
  return _ailiaOpenStreamEx(
    net,
    fopen_args,
    callback,
    version,
  );
}