るりまサーチ

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

別のキーワード

  1. _builtin bytes
  2. stringio bytes
  3. string bytes
  4. securerandom random_bytes
  5. random bytes

検索結果

<< < ... 4 5 6 >>

Net::POP3#n_mails -> Integer (7.0)

サーバにあるメールの数を返します。

...サーバにあるメールの数を返します。

@see Net::POP3#n_bytes
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::POPError サーバがエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロト...

Net::POP3#set_debug_output(f) -> () (7.0)

デバッグ用の出力 f をセットします。

...re 'net/pop'

pop = Net::POP3.new('pop.example.com', 110)
pop.set_debug_output $stderr
pop.start('YourAccount', 'YourPassword') {
p pop.n_bytes
}

実行結果:

POP session started: pop.example.com:110 (POP)
-> "+OK popd <1162042773.26346.155555a1861c@pop.example.com>\r\n"
<- "APO...

String#each_byte -> Enumerator (7.0)

文字列の各バイトに対して繰り返します。

...文字列の各バイトに対して繰り返します。

//emlist[例][ruby]{
"str".each_byte do |byte|
p byte
end
# => 115
# => 116
# => 114

"あ".each_byte do |byte|
p byte
end
# => 227
# => 129
# => 130
//}

@see String#bytes...

String#each_byte {|byte| ... } -> self (7.0)

文字列の各バイトに対して繰り返します。

...文字列の各バイトに対して繰り返します。

//emlist[例][ruby]{
"str".each_byte do |byte|
p byte
end
# => 115
# => 116
# => 114

"あ".each_byte do |byte|
p byte
end
# => 227
# => 129
# => 130
//}

@see String#bytes...

String#getbyte(index) -> Integer | nil (7.0)

index バイト目のバイトを整数で返します。

...す。
範囲外を指定した場合は nil を返します。

@param index バイトを取り出す位置

//emlist[例][ruby]{
s = "tester"
s.bytes # => [116, 101, 115, 116, 101, 114]
s.getbyte(0) # => 116
s.getbyte(1) # => 101
s.getbyte(-1) # => 114
s.getbyte(6)...

絞り込み条件を変える

<< < ... 4 5 6 >>