17 lines
441 B
TypeScript
17 lines
441 B
TypeScript
/// <reference types="node" />
|
|
export declare class Writer {
|
|
private size;
|
|
private buffer;
|
|
private offset;
|
|
private headerPosition;
|
|
constructor(size?: number);
|
|
private ensure;
|
|
addInt32(num: number): Writer;
|
|
addInt16(num: number): Writer;
|
|
addCString(string: string): Writer;
|
|
addString(string?: string): Writer;
|
|
add(otherBuffer: Buffer): Writer;
|
|
private join;
|
|
flush(code?: number): Buffer;
|
|
}
|