sdlReadU8 function

int sdlReadU8(
  1. Pointer<SdlRWops> src
)

Use this function to read a byte from an SDL_RWops.

\param src the SDL_RWops to read from \returns the read byte on success or 0 on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_WriteU8

extern DECLSPEC Uint8 SDLCALL SDL_ReadU8(SDL_RWops * src)

Implementation

int sdlReadU8(Pointer<SdlRWops> src) {
  final sdlReadU8LookupFunction = libSdl2.lookupFunction<
      Uint8 Function(Pointer<SdlRWops> src),
      int Function(Pointer<SdlRWops> src)>('SDL_ReadU8');
  return sdlReadU8LookupFunction(src);
}