REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.41 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/pg-protocol/src/buffer-reader.ts
Text
Base64
const emptyBuffer = Buffer.allocUnsafe(0) export class BufferReader { private buffer: Buffer = emptyBuffer // TODO(bmc): support non-utf8 encoding? private encoding: string = 'utf-8' constructor(private offset: number = 0) {} public setBuffer(offset: number, buffer: Buffer): void { this.offset = offset this.buffer = buffer } public int16(): number { const result = this.buffer.readInt16BE(this.offset) this.offset += 2 return result } public byte(): number { const result = this.buffer[this.offset] this.offset++ return result } public int32(): number { const result = this.buffer.readInt32BE(this.offset) this.offset += 4 return result } public uint32(): number { const result = this.buffer.readUInt32BE(this.offset) this.offset += 4 return result } public string(length: number): string { const result = this.buffer.toString(this.encoding, this.offset, this.offset + length) this.offset += length return result } public cstring(): string { const start = this.offset let end = start // eslint-disable-next-line no-empty while (this.buffer[end++] !== 0) {} this.offset = end return this.buffer.toString(this.encoding, start, end - 1) } public bytes(length: number): Buffer { const result = this.buffer.slice(this.offset, this.offset + length) this.offset += length return result } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
testing
DIR
-
drwxr-xr-x
2026-02-03 15:06:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
types
DIR
-
drwxr-xr-x
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
b.ts
473 B
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buffer-reader.ts
1.41 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buffer-writer.ts
2.44 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
inbound-parser.test.ts
15.04 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
443 B
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
messages.ts
6.31 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
outbound-serializer.test.ts
8.36 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
parser.ts
12.69 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
serializer.ts
7.02 KB
lrw-r--r--
2026-02-03 15:06:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).