72件ヒット
[1-72件を表示]
(0.126秒)
種類
- インスタンスメソッド (24)
- クラス (24)
- モジュール関数 (12)
- 特異メソッド (12)
ライブラリ
- zlib (72)
クラス
-
Zlib
:: Inflate (36)
モジュール
- Zlib (12)
キーワード
- Error (12)
- inflate (36)
-
set
_ dictionary (12)
検索結果
先頭5件
-
Zlib
:: NeedDict (24000.0) -
展開に用いる辞書が指定されていない場合に発生します。
展開に用いる辞書が指定されていない場合に発生します。 -
Zlib
:: Inflate # set _ dictionary(string) -> String (6122.0) -
展開に用いる辞書を指定します。string を返します。 このメソッドは Zlib::NeedDict 例外が発生した直後のみ 有効です。詳細は zlib.h を参照して下さい。
...::NeedDict 例外が発生した直後のみ
有効です。詳細は zlib.h を参照して下さい。
@param string 展開に用いる辞書を文字列で指定します。
require 'zlib'
def case2(str, dict)
dez = Zlib::Deflate.new
dez.set_dictionary(dict)
comp_str = dez.defl......te(str)
comp_str << dez.finish
comp_str.size
inz = Zlib::Inflate.new
begin
inz.inflate(comp_str)
rescue Zlib::NeedDict
end
# 展開に用いる辞書が必要です。
inz.set_dictionary(dict)
p inz.inflate(comp_str)
end
dict = 'hoge_fuga_ugougo'
sset......= [ dict, 'taeagbamike', 'ugotagma', 'fugebogya' ]
g = [ 0, 0, 0, 1, 1, 1, 0, 0, 0, 3, 3, 3, 0, 0, 1, 1,
0, 0, 0, 1, 2, 2, 0, 0, 0, 2, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0]
str = g.collect{|m| sset.at(m)}.join("")
case2(str, dict)... -
Zlib
. # inflate(string) -> String (6106.0) -
引数 string を展開します。Zlib::Inflate.inflate と同じです。
...引数 string を展開します。Zlib::Inflate.inflate と同じです。
@param string 展開する文字列を指定します。
@raise Zlib::NeedDict 展開に辞書が必要な場合に発生します。
@see Zlib::Inflate.inflate... -
Zlib
:: Inflate # inflate(string) -> String (6106.0) -
string を展開ストリームに入力します。
...ームへの入力を
終了します。(Zlib::ZStream#finish と同じ)。
@param string 展開する文字列を入力します。
@raise Zlib::NeedDict 展開に辞書が必要な場合に発生します。
Zlib::Inflate#set_dictionary メソッドで辞書をセットし......た
後で、空文字列と共にこのメソッドを再度呼び出して下さい。
require 'zlib'
cstr = "x\234\313\310OOUH+MOTH\315K\001\000!\251\004\276"
inz = Zlib::Inflate.new
p inz.inflate(cstr) #=> "hoge fuga end"... -
Zlib
:: Inflate . inflate(string) -> String (6106.0) -
string を展開します。
...equire 'zlib'
def inflate(string)
zstream = Zlib::Inflate.new
buf = zstream.inflate(string)
zstream.finish
zstream.close
buf
end
@param string 展開する文字列を指定します。
@raise Zlib::NeedDict 展開に辞書が必要な場合に発生します。
require......'zlib'
cstr = "x\234\313\310OOUH+MOTH\315K\001\000!\251\004\276"
p Zlib::Inflate.inflate(cstr) #=> "hoge fuga end"... -
Zlib
:: Error (6006.0) -
ライブラリ zlib の発行する全ての例外のスーパークラスです。
...が Zlib::Error のサブクラスとして定義されています。
それぞれ zlib ライブラリ関数の返すエラーと対応しています。
* Zlib::StreamEnd
* Zlib::NeedDict
* Zlib::DataError
* Zlib::StreamError
* Zlib::MemError
* Zlib::BufError
* Zlib::VersionError...