mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
3b72157e64
otherwise they don't get transpiled for some reason
7 lines
261 B
JavaScript
7 lines
261 B
JavaScript
export default 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);}
|
|
};
|