Skip to content

Welshman Docs / @welshman/lib / bytesToHex

Function: bytesToHex() ​

bytesToHex(buffer): string

Defined in: packages/lib/src/Tools.ts:1577

Converts an array buffer or Uint8Array to hex format

Parameters ​

buffer ​

ArrayBuffer or Uint8Array to convert

ArrayBuffer | Uint8Array<ArrayBufferLike>

Returns ​

string

Hex encoded string