るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.069秒)
トップページ > バージョン:2.7.0[x] > クエリ:openssl[x] > ライブラリ:openssl[x] > クエリ:<<[x] > 種類:インスタンスメソッド[x] > クラス:OpenSSL::BN[x]

別のキーワード

  1. openssl new
  2. openssl digest
  3. openssl to_der
  4. openssl to_s
  5. openssl hexdigest

検索結果

OpenSSL::BN#<<(other) -> OpenSSL::BN (87706.0)

自身を other ビット左シフトした値を返します。

...自身を other ビット左シフトした値を返します。

//emlist[][ruby]{
bn = 1.to_bn
pp bn << 1 # => #<OpenSSL::BN 2>
pp bn # => #<OpenSSL::BN 1>
//}

@param other シフトするビット数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#lshift!...