Class: SysVIPC::Shmaddr
- Inherits:
-
Object
- Object
- SysVIPC::Shmaddr
- Defined in:
- lib/sysvipc.rb
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
.
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 |