@daneren2005/shared-memory-objects 0.0.19 → 0.0.20
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/dist/src/main.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { default as SharedList, SharedListMemory } from './shared-list';
|
|
|
5
5
|
import { default as SharedMap, SharedMapMemory } from './shared-map';
|
|
6
6
|
import { default as SharedPointerList } from './shared-pointer-list';
|
|
7
7
|
import { default as SharedString } from './shared-string';
|
|
8
|
-
import { default as SharedVector, SharedVectorMemory } from './shared-vector';
|
|
8
|
+
import { default as SharedVector, SharedVectorConfig, SharedVectorMemory } from './shared-vector';
|
|
9
9
|
import { default as CachedItemList, CachedListConfig } from './cached-item-list';
|
|
10
10
|
import { default as SharedPool, SharedPoolMemory, SharedPoolConfig } from './shared-pool';
|
|
11
11
|
import { default as LocalPool, LocalPoolConfig } from './local-pool';
|
|
@@ -19,4 +19,4 @@ export * from './utils/float64-atomics';
|
|
|
19
19
|
export * from './utils/pointer';
|
|
20
20
|
export * from './lock/simple-lock';
|
|
21
21
|
export * from './lock/read-write-lock';
|
|
22
|
-
export { AllocatedMemory, type SharedAllocatedMemory, MemoryBuffer, MemoryHeap, type MemoryHeapMemory, type GrowBufferData, SharedList, type SharedListMemory, SharedMap, type SharedMapMemory, SharedPointerList, SharedString, SharedVector, type SharedVectorMemory, SharedPool, type SharedPoolMemory, type SharedPoolConfig, LocalPool, type LocalPoolConfig, CachedItemList, type CachedListConfig };
|
|
22
|
+
export { AllocatedMemory, type SharedAllocatedMemory, MemoryBuffer, MemoryHeap, type MemoryHeapMemory, type GrowBufferData, SharedList, type SharedListMemory, SharedMap, type SharedMapMemory, SharedPointerList, SharedString, SharedVector, type SharedVectorConfig, type SharedVectorMemory, SharedPool, type SharedPoolMemory, type SharedPoolConfig, LocalPool, type LocalPoolConfig, CachedItemList, type CachedListConfig };
|
|
@@ -25,6 +25,7 @@ export default class SharedVector<T extends Uint32Array | Int32Array | Float32Ar
|
|
|
25
25
|
deleteIndex(index: number): void;
|
|
26
26
|
clear(): void;
|
|
27
27
|
[Symbol.iterator](): Generator<T, void, unknown>;
|
|
28
|
+
getCurrentArray(): T;
|
|
28
29
|
private getFullDataBlock;
|
|
29
30
|
private getDataBlock;
|
|
30
31
|
private growBuffer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daneren2005/shared-memory-objects",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"author": "daneren2005@gmail.com",
|
|
5
5
|
"description": "Creating objects with a SharedArrayBuffer",
|
|
6
6
|
"homepage": "https://github.com/daneren2005/shared-memory-objects#readme",
|