rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
102 lines (47 loc) • 1.26 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [ISharedMemoryBlock](./rc-js-util.isharedmemoryblock.md)
## ISharedMemoryBlock interface
Provides a reference counted wrapper to a pointer `malloc`<!-- -->'d from JS and is `free`<!-- -->'d on reference count hitting 0.
**Signature:**
```typescript
export interface ISharedMemoryBlock extends IManagedObject
```
**Extends:** [IManagedObject](./rc-js-util.imanagedobject.md)
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[byteSize](./rc-js-util.isharedmemoryblock.bytesize.md)
</td><td>
`readonly`
</td><td>
number
</td><td>
</td></tr>
<tr><td>
[pointer](./rc-js-util.isharedmemoryblock.pointer.md)
</td><td>
`readonly`
</td><td>
number
</td><td>
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[getDataView()](./rc-js-util.isharedmemoryblock.getdataview.md)
</td><td>
</td></tr>
</tbody></table>