-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
One of MessagePack's design ideas is that it should be easy to implement a streaming API, such as in an server-client situation.
How can the internal design be worked so that the unpacking API can work in this fashion? So that something like:
mp = msgpack()
call mp%streaming_mode(1000) ! create an internal buffer of 1000 elements
do
! get data from somewhere, store in the `buf` array
call mp%load_data(buf)
if (mp%failed()) then
! error handling
end if
if (mp%value_available()) then
call mp%next_value(mp_value)
! mp_value will be the unpacked value
end if
end dowould work?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels