Class: SysVIPC::Shmaddr
Instance Method Summary collapse
-
#read(len, offset = 0) ⇒ Object
Read
len
bytes at offsetoffset
and return them in a String. -
#write(text, offset = 0) ⇒ Object
(also: #<<)
Write the string
text
to offsetoffset
.
Methods included from SysVIPC
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 |