るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. openssl bnerror
  2. openssl openssl::bnerror
  3. bnerror openssl
  4. bnerror openssl::bn
  5. mask_bits! openssl::bnerror

ライブラリ

クラス

検索結果

OpenSSL::BN#rshift!(n) -> self (87457.0)

自身を n ビット右シフトします。 [[m:OpenSSL::BN#>>]と異なり、破壊的メソッドです。

自身を n ビット右シフトします。
[[m:OpenSSL::BN#>>]と異なり、破壊的メソッドです。

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

bn = 8.to_bn
bn.rshift!(1) # => #<OpenSSL::BN 4>
bn # => #<OpenSSL::BN 4>
//}

@param n シフトするビット数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#>>