()
| 30 | } |
| 31 | |
| 32 | public uint32(): number { |
| 33 | const result = this.buffer.readUInt32BE(this.offset) |
| 34 | this.offset += 4 |
| 35 | return result |
| 36 | } |
| 37 | |
| 38 | public string(length: number): string { |
| 39 | const result = this.buffer.toString(this.encoding, this.offset, this.offset + length) |