Skip to main content

core.arraybuffertohex

Home > @medplum/core > arrayBufferToHex

arrayBufferToHex() function

Converts an ArrayBuffer to hex string. See: https://stackoverflow.com/a/55200387

Signature:

export declare function arrayBufferToHex(arrayBuffer: ArrayBufferLike | ArrayBufferView): string;

Parameters

Parameter

Type

Description

arrayBuffer

ArrayBufferLike | ArrayBufferView

The input array buffer.

Returns:

string

The resulting hex string.