default
core
corecore.SharedBufferallocSharedMemory(int size) : boolean - Create shared memory key (name) and allocate the given number of bytes.
allocSharedMemoryByKey(String key, int size) : boolean - Allocate shared memory using the given key (name).
getSharedMemoryKey() : String - Return a (non-deletable) reference to the shared memory key (name).
isOpen() : boolean - Check if shared memory is owned by this process.
isOpen() : boolean - Check if shared memory handle is valid.
lock(float timeoutMS) : boolean - Lock shared buffer.
unlock() - Unlock shared buffer.
visitSharedMemory(String key, int size) - Open an already existing shared memory area using the given key (name) and size.
Use →peekI32, →pokeI32, →ringReadBuffer, →ringWriteBuffer to atomatically read / write 32bit integers.
Ring buffer sizes must be dword-aligned (but support un-aligned read/write offsets and sizes).
Method allocSharedMemory | ||||||||||
Create shared memory key (name) and allocate the given number of bytes. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method allocSharedMemoryByKey | ||||||||||||||||||||
Allocate shared memory using the given key (name). | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method getSharedMemoryKey | |||||
Return a (non-deletable) reference to the shared memory key (name). | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method isOpen | |||||
Check if shared memory handle is valid. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method isOpen | |||||
Check if shared memory is owned by this process. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method lock | ||||||||||
Lock shared buffer. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method unlock | |||
Unlock shared buffer. | |||
Signature | |||
|
Method visitSharedMemory | |||||||||||||||
Open an already existing shared memory area using the given key (name) and size. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59