るりまサーチ (Ruby 2.1.0)

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

別のキーワード

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

ライブラリ

クラス

検索結果

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

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

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

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

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

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