sdlRWsize function

int sdlRWsize(
  1. Pointer<SdlRWops> context
)

Use this function to get the size of the data stream in an SDL_RWops.

Prior to SDL 2.0.10, this function was a macro.

\param context the SDL_RWops to get the size of the data stream from \returns the size of the data stream in the SDL_RWops on success, -1 if unknown or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.10.

extern DECLSPEC Sint64 SDLCALL SDL_RWsize(SDL_RWops *context)

Implementation

int sdlRWsize(Pointer<SdlRWops> context) {
  final sdlRWsizeLookupFunction = libSdl2.lookupFunction<
      Int64 Function(Pointer<SdlRWops> context),
      int Function(Pointer<SdlRWops> context)>('SDL_RWsize');
  return sdlRWsizeLookupFunction(context);
}