(str)
| 83 | } |
| 84 | |
| 85 | initWithBoundary(str) { |
| 86 | this.boundary = Buffer.from(`\r\n--${str}`); |
| 87 | this.lookbehind = Buffer.alloc(this.boundary.length + 8); |
| 88 | this.state = STATE.START; |
| 89 | this.boundaryChars = {}; |
| 90 | |
| 91 | for (let i = 0; i < this.boundary.length; i++) { |
| 92 | this.boundaryChars[this.boundary[i]] = true; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // eslint-disable-next-line max-params |
| 97 | _handleCallback(name, buf, start, end) { |
no outgoing calls
no test coverage detected