sdlGetAsyncIoSize function

int sdlGetAsyncIoSize(
  1. Pointer<SdlAsyncIo> asyncio
)

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

This call is not asynchronous; it assumes that obtaining this info is a non-blocking operation in most reasonable cases.

\param asyncio the SDL_AsyncIO to get the size of the data stream from. \returns the size of the data stream in the SDL_IOStream on success or a negative error code on failure; call SDL_GetError() for more information.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC Sint64 SDLCALL SDL_GetAsyncIOSize(SDL_AsyncIO *asyncio)

Implementation

int sdlGetAsyncIoSize(Pointer<SdlAsyncIo> asyncio) {
  final sdlGetAsyncIoSizeLookupFunction = libSdl3.lookupFunction<
      Int64 Function(Pointer<SdlAsyncIo> asyncio),
      int Function(Pointer<SdlAsyncIo> asyncio)>('SDL_GetAsyncIOSize');
  return sdlGetAsyncIoSizeLookupFunction(asyncio);
}