massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / node_modules / vscode-jsonrpc / lib / common / messageBuffer.d.ts
1 import RAL from './ral';
2 export declare abstract class AbstractMessageBuffer implements RAL.MessageBuffer {
3     private _encoding;
4     private _chunks;
5     private _totalLength;
6     constructor(encoding?: RAL.MessageBufferEncoding);
7     protected abstract emptyBuffer(): Uint8Array;
8     protected abstract fromString(value: string, encoding: RAL.MessageBufferEncoding): Uint8Array;
9     protected abstract toString(value: Uint8Array, encoding: RAL.MessageBufferEncoding): string;
10     protected abstract asNative(buffer: Uint8Array, length?: number): Uint8Array;
11     protected abstract allocNative(length: number): Uint8Array;
12     get encoding(): RAL.MessageBufferEncoding;
13     append(chunk: Uint8Array | string): void;
14     tryReadHeaders(): Map<string, string> | undefined;
15     tryReadBody(length: number): Uint8Array | undefined;
16     get numberOfBytes(): number;
17     private _read;
18 }