るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.170秒)
トップページ > ライブラリ:openssl[x] > クエリ:openssl[x] > バージョン:2.7.0[x] > クエリ:e[x] > クエリ:BNError[x] > クエリ:set_bit![x]

別のキーワード

  1. openssl bnerror
  2. openssl openssl::bnerror
  3. bnerror openssl
  4. bnerror openssl::bn
  5. mod_inverse openssl::bnerror

クラス

検索結果

OpenSSL::BN#set_bit!(n) -> self (105715.0)

自身の n ビット目を1にします。

...自身の n ビット目を1にします。

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

a = OpenSSL::BN.new("128")
a.set_bit!(0)
a # => 129
//}

@param n 1にするビットの位置
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::clear_bit!, OpenSSL::bit_set?...