るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.026秒)
トップページ > バージョン:2.6.0[x] > クエリ:set[x] > クエリ:new[x] > クエリ:bit_set?[x] > クラス:OpenSSL::BN[x]

別のキーワード

  1. set new
  2. stringio set_encoding
  3. _builtin set_encoding
  4. tracer set_get_line_procs
  5. set divide

ライブラリ

検索結果

OpenSSL::BN#bit_set?(n) -> bool (72697.0)

自身の n ビット目が立っているなら true を返します。

...自身の n ビット目が立っているなら true を返します。

//emlist[][ruby]{
require 'openssl'

OpenSSL::BN
.new("129").bit_set?(0) # => true
OpenSSL::BN
.new("129").bit_set?(1) # => false
//}

@param n 調べるビットの位置
@see OpenSSL::set_bit!...