UNPKG

@iotize/device-client.js

Version:

IoTize Device client for Javascript

16 lines (15 loc) 633 B
import { BodyDecoder, BodyEncoder } from '../../../../client/api/converter'; export declare class MultipleMaskConverter<OutputType> implements BodyEncoder<OutputType[]>, BodyDecoder<OutputType[]> { protected _mapping: { [key: number]: OutputType; }; constructor(mapping: any); decode(body: Uint8Array): OutputType[]; /** * TODO check that not use more than the first 7 bits * @param types */ encode(types: OutputType[]): Uint8Array; static encodeAll<T>(values: T[], mapping: any): Uint8Array; static decodeAll<T>(value: Uint8Array | number, mapping: any): T[]; }