2020-05-12 23:31:51 -04:00
|
|
|
import { Coder, Reader, Result, Writer } from "./abstract-coder";
|
|
|
|
export declare function pack(writer: Writer, coders: ReadonlyArray<Coder>, values: Array<any> | {
|
|
|
|
[name: string]: any;
|
|
|
|
}): number;
|
|
|
|
export declare function unpack(reader: Reader, coders: Array<Coder>): Result;
|
2019-08-25 02:39:20 -04:00
|
|
|
export declare class ArrayCoder extends Coder {
|
|
|
|
readonly coder: Coder;
|
|
|
|
readonly length: number;
|
|
|
|
constructor(coder: Coder, length: number, localName: string);
|
|
|
|
encode(writer: Writer, value: Array<any>): number;
|
|
|
|
decode(reader: Reader): any;
|
|
|
|
}
|