lib/browser/buffer.js
/**
 * Augment the Uint8Array *instance* (not the class!) with Buffer methods
 */
Augment the Uint8Array *instance* (not the class!) with Buffer methods
Augment the Uint8Array * instance * ( not the class! ) with Buffer methods
function augment (arr) {
  arr._isBuffer = true
  arr.write = BP.write
  arr.toString = BP.toString
  arr.toJSON = BP.toJSON
  arr.copy = BP.copy
  arr.slice = BP.slice
  arr.readUInt8 = BP.readUInt8
  arr.writeUInt8 = BP.writeUInt8
  return arr
}
function augment ( arr ) { arr . _isBuffer = true arr . write = BP . write arr . toString = BP . toString arr . toJSON = BP . toJSON arr . copy = BP . copy arr . slice = BP . slice arr . readUInt8 = BP . readUInt8 arr . writeUInt8 = BP . writeUInt8 return arr }
Augment the Uint8Array *instance* (not the class!)
Augment the Uint8Array * instance * ( not the class! )