(buffer: Buffer, front?: boolean)
| 2 | constructor(public buffers: Buffer[] = []) {} |
| 3 | |
| 4 | public add(buffer: Buffer, front?: boolean) { |
| 5 | this.buffers[front ? 'unshift' : 'push'](buffer) |
| 6 | return this |
| 7 | } |
| 8 | |
| 9 | public addInt16(val: number, front?: boolean) { |
| 10 | return this.add(Buffer.from([val >>> 8, val >>> 0]), front) |
no outgoing calls
no test coverage detected