You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new method copies the given number of msgpack values starting from
the iterator cursor position to a new msgpack array object. On success
it returns the new msgpack object and advances the iterator cursor. If
there isn't enough values to decode, it raises a Lua error and leaves
the iterator cursor unchanged.
This function could be implemented in Lua like this:
functiontake_array(iter, count)
localarray= {}
for_=1, countdotable.insert(array, iter:take())
endreturnmsgpack.object(array)
end
The text was updated successfully, but these errors were encountered:
art-dr
added
reference
[location] Tarantool manual, Reference part
server
[area] Task relates to Tarantool's server (core) functionality
feature
A new functionality
labels
Mar 14, 2022
Uh oh!
There was an error while loading. Please reload this page.
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/msgpack/#msgpack-object-methods
The new method copies the given number of msgpack values starting from
the iterator cursor position to a new msgpack array object. On success
it returns the new msgpack object and advances the iterator cursor. If
there isn't enough values to decode, it raises a Lua error and leaves
the iterator cursor unchanged.
This function could be implemented in Lua like this:
Usage example:
Requested by @locker in tarantool/tarantool@68bf388.
The text was updated successfully, but these errors were encountered: