This repository has been archived on 2022-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
|
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;
|