提交 a34948ef authored 作者: Nazar Mokrynskyi's avatar Nazar Mokrynskyi

Cosmetic changes

上级 03a48232
......@@ -25,13 +25,13 @@ typedef SSIZE_T ssize_t;
using ChannelReadCtx = void*;
using ChannelReadFreeFn = void (*)(uint8_t*, uint32_t, size_t);
// Returns `ChannelReadFree` on successful read that must be used to free `message`
// Returns `ChannelReadFree` on successful read that must be used to free `message`.
using ChannelReadFn = ChannelReadFreeFn (*)(
uint8_t** /* message */,
uint32_t* /* messageLen */,
size_t* /* messageCtx */,
// This is `uv_async_t` handle that can be called later with `uv_async_send()` when there is more
// data to read
// data to read.
const void* /* handle */,
ChannelReadCtx /* ctx */);
......@@ -41,7 +41,7 @@ using ChannelWriteFn =
using PayloadChannelReadCtx = void*;
using PayloadChannelReadFreeFn = void (*)(uint8_t*, uint32_t, size_t);
// Returns `PayloadChannelReadFree` on successful read that must be used to free `message` and `payload`
// Returns `PayloadChannelReadFree` on successful read that must be used to free `message` and `payload`.
using PayloadChannelReadFn = PayloadChannelReadFreeFn (*)(
uint8_t** /* message */,
uint32_t* /* messageLen */,
......@@ -50,7 +50,7 @@ using PayloadChannelReadFn = PayloadChannelReadFreeFn (*)(
uint32_t* /* payloadLen */,
size_t* /* payloadCapacity */,
// This is `uv_async_t` handle that can be called later with `uv_async_send()` when there is more
// data to read
// data to read.
const void* /* handle */,
PayloadChannelReadCtx /* ctx */);
......
......@@ -11,7 +11,7 @@
namespace Channel
{
/* Static. */
/* Static methods for UV callbacks. */
inline static void onAsync(uv_handle_t* handle)
{
while (static_cast<ChannelSocket*>(handle->data)->CallbackRead())
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论