[Tarantool-patches] [PATCH 2.X v4 4/4] module api: box_ibuf_* wrappers

Alexander Turenko alexander.turenko at tarantool.org
Fri Oct 16 01:48:52 MSK 2020


> +/**
> + * Return pointers to read range pointers used [rpos..wpos)
> + * @param ibuf ibuf structure
> + * @param rpos where to place ibuf.rpos address
> + * @param rpos where to place ibuf.wpos address
> + */
> +API_EXPORT void
> +box_ibuf_read_range(box_ibuf_t *ibuf, char ***rpos, char ***wpos);
> +
> +/**
> + * Return pointers to write range pointers used [wpos..end)
> + * @param ibuf ibuf structure
> + * @param rpos where to place ibuf.rpos address
> + * @param rpos where to place ibuf.wpos address
> + */
> +API_EXPORT void
> +box_ibuf_write_range(box_ibuf_t *ibuf, char ***wpos, char ***end);

Nit: Too many 'rpos'es :)


More information about the Tarantool-patches mailing list