sdl3 0.18.0

Bindings to SDL3, a cross-platform library to abstract the platform-specific details for building applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::io::Read;

#[test]
fn iostream_from_vec() {
    let logo = std::fs::read("./assets/SDL_logo.bmp").unwrap();

    let mut ios = sdl3::iostream::IOStream::from_vec(logo.clone()).unwrap();

    let mut output = Vec::new();
    ios.read_to_end(&mut output).unwrap();

    assert_eq!(output, logo);
}