sdlWriteS8 function

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

Use this function to write a signed 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_WriteS8(SDL_IOStream *dst, Sint8 value)

Implementation

bool sdlWriteS8(Pointer<SdlIoStream> dst, int value) {
  final sdlWriteS8LookupFunction = libSdl3.lookupFunction<
      Uint8 Function(Pointer<SdlIoStream> dst, Int8 value),
      int Function(Pointer<SdlIoStream> dst, int value)>('SDL_WriteS8');
  return sdlWriteS8LookupFunction(dst, value) == 1;
}