856件ヒット
[201-300件を表示]
(0.077秒)
ライブラリ
- ビルトイン (394)
- csv (22)
-
fiddle
/ import (11) -
io
/ wait (22) -
irb
/ context (33) -
irb
/ input-method (55) - mkmf (22)
-
net
/ imap (11) - openssl (22)
-
rubygems
/ package / tar _ reader / entry (22) - socket (11)
- stringio (44)
- zlib (187)
クラス
-
ARGF
. class (141) - BasicSocket (11)
- CSV (22)
-
Encoding
:: Converter (33) -
Gem
:: Package :: TarReader :: Entry (22) - IO (238)
-
IRB
:: Context (33) -
IRB
:: InputMethod (11) -
IRB
:: ReadlineInputMethod (22) -
IRB
:: StdioInputMethod (22) - MatchData (4)
-
Net
:: IMAP (11) - StringIO (44)
-
Zlib
:: GzipReader (187)
モジュール
-
Fiddle
:: Importer (11) - Kernel (22)
-
OpenSSL
:: Buffering (22)
キーワード
- append (11)
- byteoffset (4)
-
check
_ sizeof (22) - each (22)
-
each
_ byte (22) -
each
_ line (22) - eof? (99)
- getbyte (22)
- getc (44)
- gets (77)
-
ignore
_ eof (11) -
ignore
_ eof= (11) -
ignore
_ eof? (11) - lineno (11)
- lineno= (11)
- pread (7)
-
primitive
_ convert (33) - read (22)
-
read
_ nonblock (31) -
readable
_ atfer _ eof? (33) - readbyte (22)
- readchar (44)
- readline (77)
- readlines (44)
- readpartial (11)
- recv (11)
- sizeof (11)
- sysread (11)
- ungetc (11)
- wait (11)
-
wait
_ readable (11)
検索結果
先頭5件
-
Zlib
:: GzipReader # eof? -> bool (6109.0) -
圧縮データの終端に達した場合真を返します。 フッターが読み込まれていなくても真を返すことに注意して下さい。
...re 'zlib'
=begin
# hoge.gz がない場合はこれで作成する。
Zlib::GzipWriter.open('hoge.gz') { |gz|
gz.puts 'hoge'
gz.puts 'fuga'
gz.puts 'foga'
}
=end
Zlib::GzipReader.open('hoge.gz'){|gz|
gz.each_line{|line|
puts line
}
p gz.eof? #=> true
}... -
StringIO
# eof? -> bool (6103.0) -
自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。
自身の pos が文字列の終端にあれば true を返します。そうでないなら false を返します。 -
Gem
:: Package :: TarReader :: Entry # eof? -> bool (6102.0) -
自身を最後まで読み込んでいる場合は、真を返します。 そうでない場合は、偽を返します。
自身を最後まで読み込んでいる場合は、真を返します。
そうでない場合は、偽を返します。 -
Fiddle
:: Importer # sizeof(t) -> Integer (6101.0) -
C における sizeof(t) の値を返します。
...C における sizeof(t) の値を返します。
t が文字列の場合、その文字列が表す C の型の size が返されます。
例えば、sizeof("char") は 1 を返します。
sizeof("char*") は環境によって 4 や 8 といった値を返します。
Fiddle::Importer#struct......ている型を Fiddle が知らなかった
場合に発生します
例:
require 'fiddle/import'
module M
extend Fiddle::Importer
Timeval = struct(["long tv_sec", "long tv_usec"])
p sizeof("char") # => 1
p sizeof("void*") # => 8
p sizeof(Timeval) # => 16
end... -
Kernel
# check _ sizeof(type , headers = nil) -> Integer | nil (6101.0) -
与えられた型のサイズを返します。
...ローバル変数 $defs に
"-DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロ... -
Kernel
# check _ sizeof(type , headers = nil) { . . . } -> Integer | nil (6101.0) -
与えられた型のサイズを返します。
...ローバル変数 $defs に
"-DSIZEOF_type=X" を追加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロ... -
MatchData
# byteoffset(n) -> [Integer , Integer] | [nil , nil] (6101.0) -
n 番目の部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。
n 番目の部分文字列のバイト単位のオフセットの
配列 [start, end] を返します。
n番目の部分文字列がマッチしていなければ [nil, nil] を返します。
@param n 部分文字列を指定する数値
@raise IndexError 範囲外の n を指定した場合に発生します。
@see MatchData#offset -
MatchData
# byteoffset(name) -> [Integer , Integer] | [nil , nil] (6101.0) -
name という名前付きグループに対応する部分文字列のバイト単位のオフセットの 配列 [start, end] を返します。
...?:(?<day>\d{1,2})日)?/ =~ "2021年1月"
p $~.byteoffset('year') # => [0, 4]
p $~.byteoffset(:year) # => [0, 4]
p $~.byteoffset('month') # => [7, 8]
p $~.byteoffset(:month) # => [7, 8]
p $~.byteoffset('day') # => [nil, nil]
p $~.byteoffset('century') # => `offset': undefined group na... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol (101.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytesize 変換先バッファの容量
@param options 変換の詳細を指定... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol (101.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytesize 変換先バッファの容量
@param options 変換の詳細を指定... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol (101.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytesize 変換先バッファの容量
@param options 変換の詳細を指定...