るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.135秒)
トップページ > クエリ:i[x] > クエリ:h[x] > クラス:IPAddr[x] > クエリ:new_ntoh[x] > バージョン:3.3[x]

別のキーワード

  1. _builtin to_h
  2. hash to_h
  3. env to_h
  4. ostruct to_h
  5. struct to_h

ライブラリ

検索結果

IPAddr.new_ntoh(addr) -> IPAddr (81925.0)

ネットワークバイトオーダーのバイト列から IPAddr オブジェクトを生成します。

...ネットワークバイトオーダーのバイト列から IPAddr オブジェクトを生成します。

@param addr ネットワークバイトオーダーのバイト列。

例:

require 'ipaddr'
p IPAddr.new_ntoh("\300\250\001\001") # => <IPAddr: IPv4:192.168.1.1/255.255.255.255>...