2023-10-24 12:04:07 +01:00
|
|
|
// Copyright (c) Holly Stubbs (tgpholly) - Licensed under MIT
|
|
|
|
// Check LICENSE in repository root for more information.
|
|
|
|
|
2023-04-28 16:47:02 +01:00
|
|
|
export interface IReader {
|
2023-11-07 00:33:28 +00:00
|
|
|
readOffset: number,
|
|
|
|
length: number,
|
2023-04-28 16:47:02 +01:00
|
|
|
readBuffer(bytes:number): Buffer,
|
|
|
|
readUint8Array(bytes:number): Uint8Array,
|
|
|
|
readByte(): number,
|
|
|
|
readUByte(): number,
|
|
|
|
readBool(): boolean,
|
2024-11-26 15:08:21 +00:00
|
|
|
readUShortString(): string,
|
2024-01-01 22:23:16 +00:00
|
|
|
readShortString(): string,
|
|
|
|
readBytesAsString(bytesToRead:number): string,
|
2023-04-28 16:47:02 +01:00
|
|
|
readShort(): number,
|
|
|
|
readUShort(): number,
|
|
|
|
readInt(): number,
|
|
|
|
readUInt(): number,
|
|
|
|
readLong(): bigint,
|
|
|
|
readULong(): bigint,
|
|
|
|
readFloat(): number,
|
|
|
|
readDouble(): number,
|
2024-11-26 15:08:21 +00:00
|
|
|
readUString(): string,
|
2023-04-28 16:47:02 +01:00
|
|
|
readString(): string,
|
2024-01-01 22:23:16 +00:00
|
|
|
readShortsAsString(shortsToRead:number): string,
|
2024-11-26 15:08:21 +00:00
|
|
|
readUString16(): string,
|
2023-05-02 10:12:40 +01:00
|
|
|
readString16(): string,
|
2023-04-28 16:47:02 +01:00
|
|
|
}
|