sdlWriteU8 function

bool sdlWriteU8(
  1. Pointer<SdlIoStream> dst,
  2. int value
)

Use this function to write a byte to an SDL_IOStream.

\param dst the SDL_IOStream to write to. \param value the byte value to write. \returns true on successful write or false on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC bool SDLCALL SDL_WriteU8(SDL_IOStream *dst, Uint8 value)

Implementation

bool sdlWriteU8(Pointer<SdlIoStream> dst, int value) {
  final sdlWriteU8LookupFunction = libSdl3.lookupFunction<
      Uint8 Function(Pointer<SdlIoStream> dst, Uint8 value),
      int Function(Pointer<SdlIoStream> dst, int value)>('SDL_WriteU8');
  return sdlWriteU8LookupFunction(dst, value) == 1;
}