xcf-rs 0.5.0

A basic standalone GIMP XCF library in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct Version(pub u16);

impl Version {
    pub fn num(self) -> u16 {
        self.0
    }

    pub fn bytes_per_offset(self) -> usize {
        if self.0 >= 11 {
            8
        } else {
            4
        }
    }
}