Skip to content

bitAddressToBytes

bitAddressToBytes(address): Uint8Array<ArrayBuffer>

Defined in: packages/net-address/src/prefix/bit-address.ts:88

The octets of the address, most significant first, zero-padded on the left to exactly bitWidth / 8.

O(bitWidth / 8), and it allocates a fresh array each call — reach for bitAddressBitAt instead when only one bit is wanted.

BitAddress

Uint8Array<ArrayBuffer>