How to use the _augment function from buffer
Find comprehensive JavaScript buffer._augment code examples handpicked from public code repositorys.
1189 1190 1191 1192 1193 1194 1195 1196 1197 1198
throw new Error('First argument needs to be a number, array or string.') var buf if (Buffer._useTypedArrays) { // Preferred: Return an augmented `Uint8Array` instance for best performance buf = Buffer._augment(new Uint8Array(length)) } else { // Fallback: Return THIS instance of Buffer (created by `new`) buf = this buf.length = length
0
0
1
+ 3 other calls in file
buffer.Buffer is the most popular function in buffer (219 examples)