Module util

Module util 

Source

Structs§

DisplayAsHexBytesLimitted
DisplayErrorLocation
FfiSafeBytes
A helper struct for passing byte slices over the ABI boundary.
FfiSafeStr
A helper struct for passing rust strings over the ABI boundary.
RegionBuffer
TODO
RegionGuard

Functions§

copy_to_region
Copies the provided data to the current fiber’s region allocator returning a reference to the new allocation.
msgpack_decode_bin
Decode binary data from the provided msgpack.
msgpack_decode_str
Decode a utf-8 string from the provided msgpack. Advances the cursor to the first byte after the encoded string.
msgpack_read_bin
Decode binary data from the provided msgpack. Advances the cursor to the first byte after the encoded binary data.
msgpack_read_rest_of_bin
Continues decoding a binary data from the provided msgpack after marker which must have been decode from the same cursor. The cursor cursor must be set to the first byte after the decoded marker. Advances the cursor to the first byte after the encoded binary data.
msgpack_read_rest_of_str
Continues decoding a utf-8 string from the provided msgpack after marker which must have been decode from the same buffer. The buffer cursor must be set to the first byte after the decoded marker. Advances the cursor to the first byte after the encoded string.
msgpack_read_str
Decode a utf-8 string from the provided msgpack. Advances the cursor to the first byte after the encoded string.
tarantool_error_to_box_error