1
0
mirror of https://github.com/vector-im/hydrogen-web.git synced 2025-01-14 05:57:26 +01:00

7 lines
263 B
JavaScript
Raw Normal View History

module.exports = class Buffer {
static isBuffer(array) {return array instanceof Uint8Array;}
static from(arrayBuffer) {return arrayBuffer;}
static allocUnsafe(size) {return Buffer.alloc(size);}
static alloc(size) {return new Uint8Array(size);}
};