class

SDL3::IOStream

Inherits Reference < Object

Constructors

new(ptr : Pointer(LibSDL3::IOStream))
Source

Class methods

from_file(file : String, mode : String = "rb")
Source
from_memory(data : Bytes)
Source

Instance methods

close
Source
read_all

Reads the entire remainder of the stream into a Bytes slice

Source
read_bytes(count : Int) : Bytes

Reads a specific number of bytes and returns a new Slice

Source
read_u32

Reads a Little Endian 32-bit unsigned integer

Source
read_u64
Source
seek(offset : Int64) : Nil

Seeks to an absolute position from the beginning of the file

Source
size
Source
tell

Returns the current read/write byte offset

Source
to_unsafe
Source