Module: FFI::DRY::NetEndian
- Extended by:
- Library
- Defined in:
- lib/ffi/dry.rb
Constant Summary collapse
- I16_convert =
[method(:ntohs), method(:htons)]
- I32_convert =
[method(:ntohl), method(:htonl)]
- ENDIAN_METHS =
{ ::FFI.find_type(:int16) => I16_convert, ::FFI.find_type(:uint16) => I16_convert, ::FFI.find_type(:int32) => I32_convert, ::FFI.find_type(:uint32) => I32_convert, }