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.
21 lines
601 B
21 lines
601 B
4 years ago
|
/// <reference types="node" />
|
||
|
export declare class Writer {
|
||
|
private buffer;
|
||
|
private offset;
|
||
|
private headerPosition;
|
||
|
private readonly encoding;
|
||
|
constructor(size?: number);
|
||
|
private _ensure;
|
||
|
addInt32(num: number): Writer;
|
||
|
addInt16(num: number): Writer;
|
||
|
addCString(string: string): Writer;
|
||
|
addChar(c: string): Writer;
|
||
|
addString(string?: string): Writer;
|
||
|
getByteLength(): number;
|
||
|
add(otherBuffer: Buffer): Writer;
|
||
|
clear(): void;
|
||
|
addHeader(code: number, last?: boolean): void;
|
||
|
join(code?: number): Buffer;
|
||
|
flush(code?: number): Buffer;
|
||
|
}
|