Skip to content
Snippets Groups Projects
Commit 5f9a3200 authored by godzie44's avatar godzie44 Committed by Dmitry Ivanov
Browse files

feat: compatibility with tarantool-module

- add box_tuple_data_offset function
  (return offset of the msgpack encoded data from the beginning of the tuple)
- add more export functions

NO_DOC=build
NO_TEST=build
parent f8e35a5b
No related branches found
No related tags found
No related merge requests found
Date: 2022-06-10
Tag: 2.10.0-picodata
## Overview
2.10.0-picodata is a fork of tarantool 2.10.0 version by picodata.io.
This fork is used to ensure the compatibility of latest tarantool versions and the [rust module](https://github.com/picodata/tarantool-module).
## Functionality added or changed
### Core
## feature/build
* add box_tuple_data_offset function (return offset of the messagePack encoded data from the begin of the tuple)
* export functions/simbols. Exported:
* port_destroy
* cord_slab_cache
* obuf_create
* obuf_destroy
* sql_prepare
* sql_stmt_finalize
* sql_unprepare
* sql_stmt_query_str
* sql_stmt_calculate_id
* sql_bind_list_decode
* decNumberToString
* decimal_precision
* decimal_scale
* decimal_zero
* decimal_is_int
* strtodec
* decimal_from_double
* decimal_from_int64
* decimal_from_uint64
* decimal_to_int64
* decimal_to_uint64
* decimal_compare
* decimal_round
* decimal_floor
* decimal_trim
* decimal_rescale
* decimal_remainder
* decimal_abs
* decimal_minus
* decimal_add
* decimal_sub
* decimal_mul
* decimal_div
* decimal_log10
* decimal_ln
* decimal_pow
* decimal_exp
* decimal_sqrt
* decimal_len
* decimal_pack
* CTID_DECIMAL
* tuple_field_raw_by_full_path
* box_tuple_data_offset
* ipc_value_delete
* TIMEOUT_INFINITY
* ipc_value_new
* fiber_channel_delete
* fiber_channel_close
* fiber_channel_put_msg_timeout
* fiber_channel_get_msg_timeout
* fiber_channel_has_readers
* fiber_channel_has_writers
* fiber_channel_new
......@@ -565,3 +565,61 @@ uuid_nil
uuid_unpack
_say
_say_strerror
# picodata sql
port_destroy
cord_slab_cache
obuf_create
obuf_destroy
sql_prepare
sql_stmt_finalize
sql_unprepare
sql_stmt_query_str
sql_stmt_calculate_id
sql_bind_list_decode
# picodata decimal
decNumberToString
decimal_precision
decimal_scale
decimal_zero
decimal_is_int
strtodec
decimal_from_double
decimal_from_int64
decimal_from_uint64
decimal_to_int64
decimal_to_uint64
decimal_compare
decimal_round
decimal_floor
decimal_trim
decimal_rescale
decimal_remainder
decimal_abs
decimal_minus
decimal_add
decimal_sub
decimal_mul
decimal_div
decimal_log10
decimal_ln
decimal_pow
decimal_exp
decimal_sqrt
decimal_len
decimal_pack
CTID_DECIMAL
# picodata tuple
tuple_field_raw_by_full_path
box_tuple_data_offset
# picodata fiber
ipc_value_delete
TIMEOUT_INFINITY
ipc_value_new
fiber_channel_delete
fiber_channel_close
fiber_channel_put_msg_timeout
fiber_channel_get_msg_timeout
fiber_channel_has_readers
fiber_channel_has_writers
fiber_channel_new
......@@ -634,6 +634,13 @@ box_tuple_bsize(box_tuple_t *tuple)
return tuple_bsize(tuple);
}
uint16_t
box_tuple_data_offset(box_tuple_t *tuple)
{
assert(tuple != NULL);
return tuple_data_offset(tuple);
}
ssize_t
tuple_to_buf(struct tuple *tuple, char *buf, size_t size)
{
......
......@@ -148,6 +148,13 @@ box_tuple_field_count(box_tuple_t *tuple);
size_t
box_tuple_bsize(box_tuple_t *tuple);
/**
* Return the number of bytes to the MessagePack from the begin of the tuple.
* \param tuple a tuple
*/
uint16_t
box_tuple_data_offset(box_tuple_t *tuple);
/**
* Dump raw MsgPack data to the memory buffer \a buf of size \a size.
*
......
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