るりまサーチ

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. pop3 n_bytes
  3. pop n_bytes
  4. openssl n=
  5. openssl n

ライブラリ

クラス

検索結果

StringIO#ungetbyte(char) -> nil (27208.0)

指定された char を読み戻します。

...指定された char を読み戻します。

2バイト以上の読み戻しは保証されません。

@param char 読み戻したい1文字かそのコードポイントを指定します。

@see IO#ungetbyte...

IO#ungetbyte(c) -> nil (24208.0)

指定したバイト列を書き戻します。

...し(IO#sysread など)
には影響しません。

@param c バイト列(文字列)、もしくは0から255までの整数

例:

f = File.new("testfile") #=> #<File:testfile>
b = f.getbyte #=> 0x38
f.ungetbyte(b) #=> nil
f.getbyte #=> 0x38...