()
| 42 | } |
| 43 | |
| 44 | public cstring(): string { |
| 45 | const start = this.offset |
| 46 | let end = start |
| 47 | // eslint-disable-next-line no-empty |
| 48 | while (this.buffer[end++]) {} |
| 49 | this.offset = end |
| 50 | return this.buffer.toString(this.encoding, start, end - 1) |
| 51 | } |
| 52 | |
| 53 | public bytes(length: number): Buffer { |
| 54 | const result = this.buffer.slice(this.offset, this.offset + length) |
no outgoing calls
no test coverage detected