Expand description
Experimental Rust library for handling X-Midas Bluefiles.
use std::fs::File;
use bluefile::read_header;
let file = File::open("/path/to/bluefile").unwrap();
let header = read_header(&file).unwrap();
println!("{}", header.type_code);
println!("{}", header.data_type);
Structs§
- Data
Type - Two bytes that represent rank and format
- ExtKeyword
- Extended header keyword.
- ExtKeyword
Value - Represents an extended header keyword value with the necessary information to render it from raw bytes.
- Header
- Represents the main header.
- Header
Keyword - Represents a from the main header (not extended header).
- Type1000
Adjunct - Represents the adjunct header fields for type 1000 files.
- Type2000
Adjunct - Represents the adjunct header fields for type 2000 files.
Enums§
- Endianness
- Defines endianness type.
- Error
Functions§
- byte_
to_ i8 - Converts a byte to an i8.
- bytes_
to_ complex_ f32 - Converts bytes to a complex f32 (CF).
- bytes_
to_ complex_ f64 - Converts bytes to a complex f64 (CD).
- bytes_
to_ complex_ i8 - Converts bytes to a complex i8 (CB).
- bytes_
to_ complex_ i16 - Converts bytes to a complex i16 (CI).
- bytes_
to_ complex_ i32 - Converts bytes to a complex i32 (CL).
- bytes_
to_ complex_ i64 - Converts bytes to a complex i64 (CX).
- bytes_
to_ f32 - Converts bytes to an f32.
- bytes_
to_ f64 - Converts bytes to an f64.
- bytes_
to_ i16 - Converts bytes to an i16.
- bytes_
to_ i32 - Concerts bytes to an i32.
- bytes_
to_ i64 - Converts bytes to an i64.
- parse_
header - Parses the main header from raw bytes.
- read_
ext_ header - Reads the extended header keywords.
- read_
header - Reads the main header from a file.
- read_
type1000_ adjunct_ header - Reads the adjunct header from a type 1000 file.
- read_
type2000_ adjunct_ header - Reads the adjunct header from a type 2000 file.