/usr/share/doc/ruby-ffi-bit-masks/README.md is in ruby-ffi-bit-masks 0.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # ffi-bit_masks
* [Homepage](https://github.com/postmodern/ffi-bit_masks#readme)
* [Issues](https://github.com/postmodern/ffi-bit_masks/issues)
* [Documentation](http://rubydoc.info/gems/ffi-bit_masks/frames)
* [Email](mailto:postmodern.mod3 at gmail.com)
## Description
FFI plugin which adds support for bitmasked types (or flags) to FFI.
## Features
* Can map a Hash of flags to their bitmask value.
* Can map an Integer bitmask to a Hash of flags.
## Examples
require 'ffi/bit_masks'
module MyLibrary
extend FFI::Library
ffi_lib 'foo'
bit_mask :flags, {foo: 0x1, bar: 0x2, baz: 0x4}
attach_function :my_func, [:pointer, :size_t, :flags], :int
end
## Requirements
* [ffi](https://github.com/ffi/ffi#readme) ~> 1.0
## Install
$ gem install ffi-bit_masks
## Copyright
Copyright (c) 2012-2013 Hal Brodigan
See {file:LICENSE.txt} for details.
|