Class: ZMQ::Socket

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

Instance Method Summary collapse

Instance Method Details

#write(buffer) ⇒ Object



12
13
14
15
# File 'lib/zmachine/zmq_channel.rb', line 12

def write(buffer)
  bytes = send_byte_buffer(buffer, 0)
  buffer.position(buffer.position + bytes)
end