Buckets:

imerfanrajabee's picture
download
raw
639 Bytes
function WebGLProperties() {
let properties = new WeakMap();
function has( object ) {
return properties.has( object );
}
function get( object ) {
let map = properties.get( object );
if ( map === undefined ) {
map = {};
properties.set( object, map );
}
return map;
}
function remove( object ) {
properties.delete( object );
}
function update( object, key, value ) {
properties.get( object )[ key ] = value;
}
function dispose() {
properties = new WeakMap();
}
return {
has: has,
get: get,
remove: remove,
update: update,
dispose: dispose
};
}
export { WebGLProperties };

Xet Storage Details

Size:
639 Bytes
·
Xet hash:
742f0e059c0e69859866badc8889aa1e52f954a079ff9cf69557da3fcbe2e517

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.