UNPKG

@whisklabs/grpc

Version:

gRPC generator and http library for typescript

45 lines (44 loc) 1.5 kB
export declare class BufRead { buf: Uint8Array; pos: number; type: number; path: string; len: number; constructor(buf: Uint8Array); } export declare function skip(b: BufRead, val: number): void; export declare function uint32(b: BufRead): number; declare function int32(b: BufRead): number; declare function sint32(b: BufRead): number; declare function bool(b: BufRead): boolean; declare function fixed32(b: BufRead): number; declare function sfixed32(b: BufRead): number; declare function fixed64(b: BufRead): number; declare function sfixed64(b: BufRead): number; declare function int64(b: BufRead): number; declare function uint64(b: BufRead): number; declare function sint64(b: BufRead): number; declare function double(b: BufRead): number; declare function string(b: BufRead): string; declare function bytes(b: BufRead): Uint8Array; export declare function readPacked(fn: (b: BufRead, isSigned?: boolean) => unknown, b: BufRead): unknown[]; export declare const readMap: { string: typeof string; float: (b: BufRead) => number; double: typeof double; bool: typeof bool; enum: typeof uint32; uint32: typeof uint32; uint64: typeof uint64; int32: typeof int32; int64: typeof int64; sint32: typeof sint32; sint64: typeof sint64; fixed32: typeof fixed32; fixed64: typeof fixed64; sfixed32: typeof sfixed32; sfixed64: typeof sfixed64; bytes: typeof bytes; }; export type ReadMapKeys = keyof typeof readMap; export {};