bun-memory 1.1.49 → 1.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example/benchmark.ts +3 -3
- package/package.json +1 -1
- package/structs/Memory.ts +3067 -3037
- package/structs/Win32Error.ts +1 -1
package/example/benchmark.ts
CHANGED
|
@@ -69,7 +69,7 @@ for (let i = 0; i < 5; i++) {
|
|
|
69
69
|
|
|
70
70
|
// Traverse each of the potential 64 entity chunks…
|
|
71
71
|
for (let k = 0; k < 0x40; k++) {
|
|
72
|
-
const EntityChunkPtr = EntityListScratch[k]
|
|
72
|
+
const EntityChunkPtr = EntityListScratch[k]!;
|
|
73
73
|
|
|
74
74
|
if (EntityChunkPtr === 0n) {
|
|
75
75
|
continue;
|
|
@@ -79,13 +79,13 @@ for (let i = 0; i < 5; i++) {
|
|
|
79
79
|
|
|
80
80
|
// Traverse the potential 512 entities in that chunk…
|
|
81
81
|
for (let j = 0x00, l = 0x00; j < 0x200; j++, l += 0x0e) {
|
|
82
|
-
const BaseEntityPtr = EntityChunkScratch[l]
|
|
82
|
+
const BaseEntityPtr = EntityChunkScratch[l]!;
|
|
83
83
|
|
|
84
84
|
if (BaseEntityPtr === 0n) {
|
|
85
85
|
continue;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
const EntityClassInfoPtr = EntityChunkScratch[l + 0x01]
|
|
88
|
+
const EntityClassInfoPtr = EntityChunkScratch[l + 0x01]!;
|
|
89
89
|
|
|
90
90
|
let Name = EntityClassInfoNames.get(EntityClassInfoPtr);
|
|
91
91
|
|