るりまサーチ

最速Rubyリファレンスマニュアル検索!
553件ヒット [401-500件を表示] (0.010秒)

別のキーワード

  1. securerandom hex
  2. string hex
  3. _builtin hex
  4. ipv6 regex_8hex
  5. ipv6 regex_6hex4dec

検索結果

<< < ... 3 4 5 6 > >>

Array#pack(template) -> String (12.0)

配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。

...ck('ccxxcc') # => [82, 117, 98, 121]
//}

: Hexダンプを数値の配列に変換する例
//emlist[][ruby]{
"61 62 63 64 65 66".delete(' ').lines.pack('H*').unpack('C*')
# => [97, 98, 99, 100, 101, 102]

"61 62 63 64 65 66".split.collect {|c| c.hex}
# => [97, 98, 99, 100, 101, 102]
//}

: バ...

Array#pack(template, buffer: String.new) -> String (12.0)

配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。

...ck('ccxxcc') # => [82, 117, 98, 121]
//}

: Hexダンプを数値の配列に変換する例
//emlist[][ruby]{
"61 62 63 64 65 66".delete(' ').lines.pack('H*').unpack('C*')
# => [97, 98, 99, 100, 101, 102]

"61 62 63 64 65 66".split.collect {|c| c.hex}
# => [97, 98, 99, 100, 101, 102]
//}

: バ...

Resolv::IPv6.create(address) -> Resolv::IPv6 (12.0)

引数 address で指定した文字列から Resolv::IPv6 のインスタンスを生成しま す。

...ddress で指定した文字列から Resolv::IPv6 のインスタンスを生成しま
す。

@param address human readable な IPv6 アドレスの文字列表現を以下のいず
れかの形式で指定します。

* 8Hex
* CompressedHex
* 6Hex4Dec
* CompressedHex4Dec...

String#unpack(template) -> Array (12.0)

Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。

...ck('ccxxcc') # => [82, 117, 98, 121]
//}

: Hexダンプを数値の配列に変換する例
//emlist[][ruby]{
"61 62 63 64 65 66".delete(' ').lines.pack('H*').unpack('C*')
# => [97, 98, 99, 100, 101, 102]

"61 62 63 64 65 66".split.collect {|c| c.hex}
# => [97, 98, 99, 100, 101, 102]
//}

: バ...

pack テンプレート文字列 (12.0)

pack テンプレート文字列

...ck('ccxxcc') # => [82, 117, 98, 121]
//}

: Hexダンプを数値の配列に変換する例
//emlist[][ruby]{
"61 62 63 64 65 66".delete(' ').lines.pack('H*').unpack('C*')
# => [97, 98, 99, 100, 101, 102]

"61 62 63 64 65 66".split.collect {|c| c.hex}
# => [97, 98, 99, 100, 101, 102]
//}

: バ...

絞り込み条件を変える

Encoding::Converter.new(convpath) -> Encoding::Converter (6.0)

Encoding::Converter オブジェクトを作成します。

...下の定数が利用可能です。

* Encoding::Converter::INVALID_REPLACE
* Encoding::Converter::UNDEF_REPLACE
* Encoding::Converter::UNDEF_HEX_CHARREF
* Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR
* Encoding::Converter::CRLF_NEWLINE_DECORATOR
* Encoding::Converter::CR_NEWLINE_DE...

Encoding::Converter.new(source_encoding, destination_encoding) -> Encoding::Converter (6.0)

Encoding::Converter オブジェクトを作成します。

...下の定数が利用可能です。

* Encoding::Converter::INVALID_REPLACE
* Encoding::Converter::UNDEF_REPLACE
* Encoding::Converter::UNDEF_HEX_CHARREF
* Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR
* Encoding::Converter::CRLF_NEWLINE_DECORATOR
* Encoding::Converter::CR_NEWLINE_DE...

Encoding::Converter.new(source_encoding, destination_encoding, options) -> Encoding::Converter (6.0)

Encoding::Converter オブジェクトを作成します。

...下の定数が利用可能です。

* Encoding::Converter::INVALID_REPLACE
* Encoding::Converter::UNDEF_REPLACE
* Encoding::Converter::UNDEF_HEX_CHARREF
* Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR
* Encoding::Converter::CRLF_NEWLINE_DECORATOR
* Encoding::Converter::CR_NEWLINE_DE...

Kernel.#Integer(arg, base = 0) -> Integer (6.0)

引数を整数 (Fixnum,Bignum) に変換した結果を返します。

...teger("1\n0") # `Integer': invalid value for Integer: "1\n0" (ArgumentError)
p Integer("hoge") # `Integer': invalid value for Integer: "hoge" (ArgumentError)
p Integer("") # `Integer': invalid value for Integer: "" (ArgumentError)
//}

@see String#hex,String#oct,String#to_i,Integer...

Kernel.#Integer(arg, base = 0, exception: true) -> Integer | nil (6.0)

引数を整数 (Fixnum,Bignum) に変換した結果を返します。

...teger("1\n0") # `Integer': invalid value for Integer: "1\n0" (ArgumentError)
p Integer("hoge") # `Integer': invalid value for Integer: "hoge" (ArgumentError)
p Integer("") # `Integer': invalid value for Integer: "" (ArgumentError)
//}

@see String#hex,String#oct,String#to_i,Integer...

絞り込み条件を変える

<< < ... 3 4 5 6 > >>