Class: SysVIPC::Shmaddr

Inherits:
Object
  • Object
show all
Includes:
SysVIPC
Defined in:
lib/SysVIPC.rb

Instance Method Summary collapse

Methods included from SysVIPC

#check_result

Instance Method Details

#read(len, offset = 0) ⇒ Object

Read len bytes at offset offset and return them in a String.



376
377
378
# File 'lib/SysVIPC.rb', line 376

def read(len, offset = 0)
  shmread(self, len, offset)
end

#write(text, offset = 0) ⇒ Object Also known as: <<

Write the string text to offset offset.



369
370
371
# File 'lib/SysVIPC.rb', line 369

def write(text, offset = 0)
  shmwrite(self, text, offset)
end