Module: ZMQ::LibZMQ::PollItemLayout
- Included in:
- PollItem
- Defined in:
- lib/ffi-rzmq/libzmq.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/ffi-rzmq/libzmq.rb', line 133 def self.included(base) if FFI::Platform::IS_WINDOWS && FFI::Platform::ADDRESS_SIZE==64 # On Windows, zmq.h defines fd as a SOCKET, which is 64 bits on x64. fd_type=:uint64 else fd_type=:int end base.class_eval do layout :socket, :pointer, :fd, fd_type, :events, :short, :revents, :short end end |