{"id":"bytes-pack-integers","version":"1.0.0","description":"Pack exact decimal integer strings into raw hex bytes with explicit widths, endianness, and range checks.","supported_operations":["bitwise integer operations unsigned hex encode endian","pack integers into little endian bytes","write protocol integer fields as hex","Python struct pack integers to hexadecimal","encode signed i16 and unsigned u32 bytes","make firmware raw bytes from integer values","range check integer binary fields"],"unsupported_operations":["bitwise arithmetic or masks","floating-point fields","native alignment or host byte order"],"semantics":["Inputs and outputs preserve 64-bit integers exactly as strings; standard_version is IEEE 754-2019; Python 3.12 struct.","Layout uses the same named fields or Python struct subset as bytes-unpack-integers; x writes 00 and consumes no value; = is deterministic little endian.","Each integer is checked against its signed or unsigned field range before two’s-complement encoding.","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":["values","layout"],"properties":{"values":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":21,"pattern":"^(0|-?[1-9][0-9]*)$"}},"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","hex"],"properties":{"standard_version":{"type":"string"},"byte_length":{"type":"integer","minimum":1,"maximum":256},"hex":{"type":"string","minLength":2,"maxLength":512,"pattern":"^[0-9a-f]+$"}}},"examples":[{"input":{"values":["305419896"],"layout":["u32le"]},"output":{"standard_version":"IEEE 754-2019; Python 3.12 struct","byte_length":4,"hex":"78563412"}},{"input":{"values":["-1","127"],"layout":">hH"},"output":{"standard_version":"IEEE 754-2019; Python 3.12 struct","byte_length":4,"hex":"ffff007f"}}],"execute_url":"/v1/tools/bytes-pack-integers/versions/1.0.0/execute"}