(buffer, offset, length)
| 43 | } |
| 44 | |
| 45 | function readTarString(buffer, offset, length) { |
| 46 | const end = buffer.indexOf(0, offset); |
| 47 | const stringEnd = end === -1 || end > offset + length ? offset + length : end; |
| 48 | return buffer.toString('utf8', offset, stringEnd); |
| 49 | } |
| 50 | |
| 51 | function readFileFromTarball(tarballPath, targetPath) { |
| 52 | const buffer = gunzipSync(readFileSync(tarballPath)); |
no test coverage detected