to bytes

Basic data handling: IntToBytes

Converts an integer to its byte representation. This node takes an integer, byte length, and byte order as inputs and returns the bytes object representation of the integer.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (4)

NameTypeRequired
int_valueINTrequired
lengthINTrequired
byteorderCOMBOrequired
signedCOMBOrequired

Outputs (1)

NameType
BYTESBYTES