Skip to content
Snippets Groups Projects
Commit e41c8baf authored by Andrey Saranchin's avatar Andrey Saranchin Committed by Vladimir Davydov
Browse files

port: introduce get_c_entries virtual method

The method allows to represent port contents as a list of port_c_entry.
It is handy to easily iterate over the port contents since port_c_entry
is actually a list of variants of supported by Tarantool types. It is
needed to easily process values returned from triggers.

Returned entries mustn't be destroyed since they don't own any resources.
Their lifetime is similar to the MsgPack obtained by port_get_msgpack -
it may be returned directly from the port, or it can be allocated on
fiber()->gc, so the caller is responsible for cleaning the region up.

NO_CHANGELOG=internal
NO_DOC=internal
parent f7cdc4b1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment