a2kit

Macro getByteEx

source
macro_rules! getByteEx {
    ($root:ident,$typ:ident,$slf:ident.$($x:ident).+) => { ... };
}
Expand description

Get a byte value from the image into a JSON object, adding the _raw terminus. The _pretty terminus has to be added by hand.

getByteEx!(root:JsonValue,image_type:String,self.path.to.byte:u8)