How to use the _augment function from safe-buffer

Find comprehensive JavaScript safe-buffer._augment code examples handpicked from public code repositorys.

544
545
546
547
548
549
550
551
552
553
554


function fromArrayBuffer (that, array) {
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    // Return an augmented `Uint8Array` instance, for best performance
    array.byteLength
    that = Buffer._augment(new Uint8Array(array))
  } else {
    // Fallback: Return an object instance of the Buffer class
    that = fromTypedArray(that, new Uint8Array(array))
  }
fork icon2
star icon0
watch icon0

+ 2 other calls in file