Class: SysVIPC::Shmaddr

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

Instance Method Summary collapse

Instance Method Details

#read(len, offset = 0) ⇒ Object

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



367
368
369
# File 'lib/sysvipc.rb', line 367

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.



360
361
362
# File 'lib/sysvipc.rb', line 360

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