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

Interfaces

DataConverter
TypedArrayConstructor

Type Aliases

JsonCompatible
TypedArray

Variables

arrayBuffer
bool
float32
float64
int16
int32
int64
int8
string
uint16
uint32
uint64
uint8

Functions

checkedJson
json
typedArray