mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-21 07:45:02 +02:00
ruby: update rdoc
This commit is contained in:
@@ -654,7 +654,7 @@ void Init_msgpack_unpack(VALUE mMessagePack)
|
||||
* Following code uses Buffered API with an input stream:
|
||||
*
|
||||
* # create an unpacker with input stream.
|
||||
* pac = MessagePack::Unpacker.new(stdin)
|
||||
* pac = MessagePack::Unpacker.new(STDIN)
|
||||
*
|
||||
* # deserialize object one after another.
|
||||
* pac.each {|obj|
|
||||
@@ -663,8 +663,8 @@ void Init_msgpack_unpack(VALUE mMessagePack)
|
||||
*
|
||||
*
|
||||
* Following code doesn't use the input stream and feeds buffer
|
||||
* using *fill* method. This is useful to use special stream
|
||||
* or with event-driven I/O library.
|
||||
* manually. This is useful to use special stream or with
|
||||
* event-driven I/O library.
|
||||
*
|
||||
* # create an unpacker without input stream.
|
||||
* pac = MessagePack::Unpacker.new()
|
||||
@@ -677,6 +677,7 @@ void Init_msgpack_unpack(VALUE mMessagePack)
|
||||
* # ...
|
||||
* }
|
||||
*
|
||||
*
|
||||
* You can manage the buffer manually with the combination of
|
||||
* *execute*, *finished?*, *data* and *reset* method.
|
||||
*
|
||||
|
Reference in New Issue
Block a user