---
name: "SDL_ReadU64BE"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_ReadU64BE"
---

# SDL\_ReadU64BE(3)

Use this function to read 64 bits of big-endian data from an SDL\_IOStream and return in native format.

## NAME

SDL\_ReadU64BE - Use this function to read 64 bits of big-endian data from an  **SDL\_IOStream**\
  and return in native format.

## HEADER FILE

Defined in SDL3/SDL\_iostream.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_ReadU64BE(SDL\_IOStream \*src, Uint64 \*value);**

## DESCRIPTION

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

This function will return false when the data stream is completely read, and  **SDL\_GetIOStatus** () will return

**SDL\_IO\_STATUS\_EOF** . If false is returned and the stream is not at EOF,  **SDL\_GetIOStatus** () will return a different error value and  **SDL\_GetError** () will offer a human-readable message.

## FUNCTION PARAMETERS

- *src*

  the stream from which to read data.

- *value*

  a pointer filled in with the data read.

## RETURN VALUE

Returns true on successful write or false on failure; call

**SDL\_GetError** () for more information.

## THREAD SAFETY

This function is not thread safe.

## AVAILABILITY

This function is available since SDL 3.2.0.
