Skip to main content
Module

x/polkadot/util/bundle.ts>bufferToU8a

Package publishing for deno.land/x/polkadot
Go to Latest
function bufferToU8a
import { bufferToU8a } from "https://deno.land/x/polkadot@0.2.40/util/bundle.ts";

Examples

import { bufferToU8a } from 'https://deno.land/x/polkadot@0.2.40/util/mod.ts';

bufferToU8a(Buffer.from([1, 2, 3]));

Parameters

optional
buffer: Uint8Array | number[] | null

Returns

Uint8Array