(size)
| 1095 | } |
| 1096 | |
| 1097 | function createUnsafeBuffer(size) { |
| 1098 | if (size <= 64) { |
| 1099 | // Allocated in heap, doesn't call backing store anyway |
| 1100 | // This is the same that the old impl did implicitly, but explicit now |
| 1101 | return new FastBuffer(size); |
| 1102 | } |
| 1103 | |
| 1104 | return new FastBuffer(createUnsafeArrayBuffer(size)); |
| 1105 | } |
| 1106 | |
| 1107 | module.exports = { |
| 1108 | FastBuffer, |
no outgoing calls
no test coverage detected
searching dependent graphs…