Converts an integer-compatible value to a Uint8Array (given a byte length)
import { intToBytes } from "@stacks/common";console.log(intToBytes(560, 4));// Uint8Array(4) [ 0, 0, 2, 48 ] Copy
import { intToBytes } from "@stacks/common";console.log(intToBytes(560, 4));// Uint8Array(4) [ 0, 0, 2, 48 ]
Generated using TypeDoc
Converts an integer-compatible value to a Uint8Array (given a byte length)