A language for specifying data-dependent binary formats.
let pixel = {
red <- u8,
green <- u8,
blue <- u8,
};
let image = {
width <- u16le,
height <- u16le,
pixels <- array16 (u16_mul width height) pixel,
};
image
More examples can be found in the formats directory.
Please note that this project is released with a Code of Conduct. By participating in this project you agree to abide by its terms.
Fathom is licensed under the terms of the Apache License (Version 2.0).
See LICENSE or http://www.apache.org/licenses/LICENSE-2.0 for details.