back to index
SharedBuffer
- a named Buffer that can be shared among processes.
Inheritance
Object -> Stream -> Buffer -> SharedBuffer
Properties
sharedMemoryKey -(read), stores the current shared memory name
Methods
boolean allocSharedMemory (int _size) generate random name and allocate new shared memory region which can hold _size bytes.
boolean allocSharedMemoryByKey (String _key, int _size) allocate new shared memory region called _key which can hold _size bytes.
String getSharedMemoryKey () query the name of the shared memory region associated with this object.
boolean visitSharedMemory (String _key, int _size) "connect" to existing shared memory region
<Buffer methods>
<Stream methods>
Examples
back to index