You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
592 B
16 lines
592 B
4 years ago
|
/// <reference types="node" />
|
||
|
export default class BufferList {
|
||
|
buffers: Buffer[];
|
||
|
constructor(buffers?: Buffer[]);
|
||
|
add(buffer: Buffer, front?: boolean): this;
|
||
|
addInt16(val: number, front?: boolean): this;
|
||
|
getByteLength(initial?: number): number;
|
||
|
addInt32(val: number, first?: boolean): this;
|
||
|
addCString(val: string, front?: boolean): this;
|
||
|
addString(val: string, front?: boolean): this;
|
||
|
addChar(char: string, first?: boolean): this;
|
||
|
addByte(byte: number): this;
|
||
|
join(appendLength?: boolean, char?: string): Buffer;
|
||
|
static concat(): Buffer;
|
||
|
}
|