UNPKG

electr0lysis

Version:

Simple framework for data serialization and interchange.

11 lines (10 loc) 475 B
import "f1ux/array/operator/first"; import Encoder from "../Encoder"; import EncoderContext from "../EncoderContext"; import Type from "../reflect/Type"; declare class ArrayEncoder implements Encoder<any[]> { private constructParameters(value, type); calculateSize(value: any[], type: Type, context: EncoderContext): number; encode(value: any[], type: Type, view: DataView, offset: number, context: EncoderContext): void; } export default ArrayEncoder;