mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
ruby: update rdoc
This commit is contained in:
parent
d0af8aa9f1
commit
dbebe9771b
3 changed files with 12 additions and 8 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue