sdlWriteBe64 function

int sdlWriteBe64(
  1. Pointer<SdlRWops> dst,
  2. int value
)

Use this function to write 64 bits in native format to a SDL_RWops as big-endian data.

SDL byteswaps the data only if necessary, so the application always specifies native format, and the data written will be in big-endian format.

\param dst the stream to which data will be written \param value the data to be written, in native format \returns 1 on successful write, 0 on error.

\since This function is available since SDL 2.0.0.

\sa SDL_WriteLE64

extern DECLSPEC size_t SDLCALL SDL_WriteBE64(SDL_RWops * dst, Uint64 value)

Implementation

int sdlWriteBe64(Pointer<SdlRWops> dst, int value) {
  final sdlWriteBe64LookupFunction = libSdl2.lookupFunction<
      Uint32 Function(Pointer<SdlRWops> dst, Uint64 value),
      int Function(Pointer<SdlRWops> dst, int value)>('SDL_WriteBE64');
  return sdlWriteBe64LookupFunction(dst, value);
}