Crate hx

Source
Expand description

general hex lib

Structs§

Line
Line structure for hex output
Page
Page structure

Enums§

Format
nothing ⇒ Display ? ⇒ Debug o ⇒ Octal x ⇒ LowerHex X ⇒ UpperHex p ⇒ Pointer b ⇒ Binary e ⇒ LowerExp E ⇒ UpperExp evaluate for traits implementation

Constants§

ARG_ARR
arg array
ARG_CLR
arg color
ARG_COL
arg cols
ARG_FMT
arg format
ARG_FNC
arg func
ARG_INP
arg INPUTFILE
ARG_LEN
arg len
ARG_PFX
arg prefix
ARG_PLC
arg places

Functions§

append_ascii
append char representation of a byte to a buffer
buf_to_array
Buffer to array.
byte_to_color
get the color for a specific byte
is_stdin
Detect stdin, file path and/or parameters.
offset
offset column
output_array
Output source code array format.
output_function
Function wave out.
print_byte
print byte to std out
print_offset
print offset to std out
run
In most hex editor applications, the data of the computer file is represented as hexadecimal values grouped in 4 groups of 4 bytes (or two groups of 8 bytes), followed by one group of 16 printable ASCII characters which correspond to each pair of hex values (each byte). Non-printable ASCII characters (e.g., Bell) and characters that would take more than one character space (e.g., tab) are typically represented by a dot (“.”) in the following ASCII field.