(bytes: number)
| 53 | const MIN_BUFFER_BYTES = 4; |
| 54 | |
| 55 | function roundUpToMultipleOf4(bytes: number): number { |
| 56 | return (bytes + 3) & ~3; |
| 57 | } |
| 58 | |
| 59 | function nextPow2(bytes: number): number { |
| 60 | if (!Number.isFinite(bytes) || bytes <= 0) return 1; |
no outgoing calls
no test coverage detected