1 import RAL from './ral';
2 export declare abstract class AbstractMessageBuffer implements RAL.MessageBuffer {
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;