Bit Inversion (NOT)
Inverts all bits (One's Complement, ~) of the input bytes
Overview
Computes the bitwise one's complement (NOT, ~) of the input byte array by inverting every bit in every byte (byte ^ 0xFF). The output buffer has the exact same byte length as the input buffer.
When to Use
- Inverting bitmasks, computing one's complement checksums, or flipping all bits of a block during differential/fault-injection testing.
Parameter Configuration
Bitwise NOT requires no configuration parameters; it unconditionally inverts all 8 bits of each byte in Data.
Port I/O Specification
See Ports & Connections for general wiring rules, data type colors, and dynamic port creation.
Input Ports
Port Nature: Fixed Input Ports (1 total).
| Port Name | Port ID | Data Type | Required | Visibility Condition | Description |
|---|---|---|---|---|---|
Data |
data |
Bytes |
Required | Always visible | Input byte array (Uint8Array) whose bits will be inverted. |
Output Ports
Port Nature: Fixed Output Ports (1 total).
| Port Name | Port ID | Data Type | Visibility Condition | Description |
|---|---|---|---|---|
Inverted |
inverted |
Bytes |
Always visible |
Error Cases
This node has no runtime failure cases (errorProfile: none) and always succeeds for any valid typed input.
Examples
Inverting a 4-Byte Mask
Flip all bits of 0xFF00AA55 to produce 0x00FF55AA.
- Connect
ff00aa55toData;Resultoutputs00ff55aa.