forked from mystiq/hydrogen-web
7 lines
284 B
JavaScript
7 lines
284 B
JavaScript
var Buffer = {
|
|
isBuffer: function(array) {return array instanceof Uint8Array;},
|
|
from: function(arrayBuffer) {return arrayBuffer;},
|
|
allocUnsafe: function(size) {return Buffer.alloc(size);},
|
|
alloc: function(size) {return new Uint8Array(size);}
|
|
};
|
|
export default Buffer;
|