sigil-tee-material · hex_io
Source declarations, signatures and documentation for hex_io.
Source: sigil/node/sigil-tee-material/src/hex_io.rs. SHA-256: 819a84c3476fc3f004ec935425fcd2f12ffe65f5aaaa239e76d6bedf6f881167.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
hex_io::read_bytes
Read raw bytes from a file. Whitespace-trimmed hex/strings are detected by length parity + alphabet; otherwise the file is treated as opaque bytes.
pub fn read_bytes(path: &Path) -> Result<Vec<u8>, ToolError>;Source line: 7.
hex_io::read_hex_line
Read a file expected to contain a single line of lowercase hex, possibly with surrounding whitespace.
pub fn read_hex_line(path: &Path) -> Result<Vec<u8>, ToolError>;Source line: 14.
hex_io::read_bytes_or_hex
Try to read either a hex line or a raw bytes file. Returns the raw bytes either way.
pub fn read_bytes_or_hex(path: &Path) -> Result<Vec<u8>, ToolError>;Source line: 23.
hex_io::write_json
pub fn write_json<T: serde::Serialize>(path: &Path, v: &T) -> Result<(), ToolError>;Source line: 30.
hex_io::read_text
pub fn read_text(path: &Path) -> Result<String, ToolError>;Source line: 36.