decord/source/761_mapCacheSet.js

19 lines
389 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 761
// Function ID: 762
2026-07-20 16:05:17 +00:00
// Name: mapCacheSet
2026-07-29 08:29:29 +00:00
// Dependencies: [757]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 761 (mapCacheSet)
2026-07-20 16:05:17 +00:00
export default function mapCacheSet(arg0, arg1) {
const self = this;
2026-07-29 08:29:29 +00:00
const obj = require(757) /* getMapData */(this, arg0);
2026-07-20 16:05:17 +00:00
const result = obj.set(arg0, arg1);
let num = 1;
if (obj.size == obj.size) {
num = 0;
}
self.size = this.size + num;
return self;
};