sdlGetIoProperties function iostream

int sdlGetIoProperties(
  1. Pointer<SdlIoStream> context
)

Get the properties associated with an SDL_IOStream.

\param context a pointer to an SDL_IOStream structure. \returns a valid property ID on success or 0 on failure; call SDL_GetError() for more information.

\threadsafety Do not use the same SDL_IOStream from two threads at once.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetIOProperties(SDL_IOStream *context)

Implementation

int sdlGetIoProperties(Pointer<SdlIoStream> context) {
  final sdlGetIoPropertiesLookupFunction = _libSdl
      .lookupFunction<
        Uint32 Function(Pointer<SdlIoStream> context),
        int Function(Pointer<SdlIoStream> context)
      >('SDL_GetIOProperties');
  return sdlGetIoPropertiesLookupFunction(context);
}