sdlReadLe64 function

int sdlReadLe64(
  1. Pointer<SdlRWops> src
)

Use this function to read 64 bits of little-endian data from an SDL_RWops and return in native format.

SDL byteswaps the data only if necessary, so the data returned will be in the native byte order.

\param src the stream from which to read data \returns 64 bits of data in the native byte order of the platform.

\since This function is available since SDL 2.0.0.

\sa SDL_ReadBE64

extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops * src)

Implementation

int sdlReadLe64(Pointer<SdlRWops> src) {
  final sdlReadLe64LookupFunction = libSdl2.lookupFunction<
      Uint64 Function(Pointer<SdlRWops> src),
      int Function(Pointer<SdlRWops> src)>('SDL_ReadLE64');
  return sdlReadLe64LookupFunction(src);
}