update src/common/transfer.h.

Signed-off-by: liupeng298 <liupeng298@huawei.com>
This commit is contained in:
liupeng298 2024-07-26 08:20:14 +00:00 committed by Gitee
parent 819e5996b7
commit e8762e0b32
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -130,6 +130,7 @@ private:
}; };
static const uint8_t payloadPrefixReserve = 64; static const uint8_t payloadPrefixReserve = 64;
static void OnFileIO(uv_fs_t *req); static void OnFileIO(uv_fs_t *req);
static void Next(HdcTransferBase *thisClass, CtxFile *context);
int SimpleFileIO(CtxFile *context, uint64_t index, uint8_t *sendBuf, int bytes); int SimpleFileIO(CtxFile *context, uint64_t index, uint8_t *sendBuf, int bytes);
bool SendIOPayload(CtxFile *context, uint64_t index, uint8_t *data, int dataSize); bool SendIOPayload(CtxFile *context, uint64_t index, uint8_t *data, int dataSize);
bool RecvIOPayload(CtxFile *context, uint8_t *data, int dataSize); bool RecvIOPayload(CtxFile *context, uint8_t *data, int dataSize);