{"id":"bytes-unpack-integers","version":"1.0.0","description":"Unpack raw hex bytes into exact signed or unsigned integer strings using an explicit endian layout.","supported_operations":["binary bytes unpack integers little endian","decode little endian 32 bit unsigned integer hex bytes","unpack a hex byte string with Python struct format","read signed integers from network protocol bytes","decode firmware fields with explicit endianness","raw bytes to u16 i32 and u64 values","interpret big endian integer fields"],"unsupported_operations":["bitwise AND masks","floating-point fields","native alignment or host byte order"],"semantics":["Returns decimal strings so all 64-bit values remain exact; standard_version is IEEE 754-2019; Python 3.12 struct.","Layout is either named fields u8/i8/u16/i16/u32/i32/u64/i64 with le/be required above 8 bits, or Python struct subset < > ! = followed by x b B h H i I l L q Q and repeat counts; = is always little endian, never host order.","The layout must consume exactly the supplied bytes; x consumes a zero-meaningless padding byte and returns no field.","max_input_bytes bounds the UTF-8 byte length of JSON.stringify(input), including keys, punctuation, and every field. Field bounds apply together with this whole-input bound.","max_hex_chars bounds the input hex string for unpacking and the output hex string for packing, allowing at most 256 raw bytes. max_layout_bytes bounds a string layout in UTF-8."],"limits":{"max_input_bytes":4096,"max_hex_chars":512,"max_layout_bytes":130,"max_items":64,"max_output_bytes":8192},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["hex","layout"],"properties":{"hex":{"type":"string","minLength":2,"maxLength":512,"pattern":"^[0-9A-Fa-f]+$"},"layout":{"oneOf":[{"type":"string","minLength":2,"maxLength":130},{"type":"array","minItems":1,"maxItems":64,"items":{"type":"string","minLength":2,"maxLength":7}}]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["standard_version","byte_length","fields"],"properties":{"standard_version":{"type":"string"},"byte_length":{"type":"integer","minimum":1,"maximum":256},"fields":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":false,"required":["type","offset","value"],"properties":{"type":{"type":"string"},"offset":{"type":"integer","minimum":0,"maximum":255},"value":{"type":"string"}}}}}},"examples":[{"input":{"hex":"78563412","layout":["u32le"]},"output":{"standard_version":"IEEE 754-2019; Python 3.12 struct","byte_length":4,"fields":[{"type":"u32le","offset":0,"value":"305419896"}]}},{"input":{"hex":"ffff007f","layout":">hH"},"output":{"standard_version":"IEEE 754-2019; Python 3.12 struct","byte_length":4,"fields":[{"type":"h","offset":0,"value":"-1"},{"type":"H","offset":2,"value":"127"}]}}],"execute_url":"/v1/tools/bytes-unpack-integers/versions/1.0.0/execute"}