(buf, off)
| 158 | } |
| 159 | |
| 160 | parseLCStr (buf, off) { |
| 161 | if (off + 4 > buf.length) |
| 162 | throw new Error('lc_str OOB'); |
| 163 | |
| 164 | var offset = this.readUInt32(buf, off) - 8; |
| 165 | if (offset > buf.length) |
| 166 | throw new Error('lc_str offset OOB'); |
| 167 | |
| 168 | return this.parseCStr(buf.slice(offset)); |
| 169 | } |
| 170 | |
| 171 | parseCommand(type, buf, file) { |
| 172 | if (type === 'segment') |
no test coverage detected