This module provides converters to and from ArrayBuffer objects.

Converters are commonly used as kv.typedKv or kv.typedKvSet arguments. Another use case is crypto.wrapKey to convert PEM-encoded keys to ArrayBuffer.

Example:

import * as ccfapp from '@microsoft/ccf-app';

const val = 'my-string';
const buf = ccfapp.string.encode(val); // ArrayBuffer
const val2 = ccfapp.string.decode(buf); // string, val == val2

Index

Interfaces

Type Aliases

Variables

Functions