mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
8 lines
284 B
JavaScript
8 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;
|