Searched refs:szRead (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/communication/wifi/wifi/base/cRPC/src/ |
H A D | context.c | 37 context->szRead = (char *)calloc(capacity, sizeof(char)); in CreateContext() 38 if (context->szRead == NULL) { in CreateContext() 45 free(context->szRead); in CreateContext() 62 free(context->szRead); in ReleaseContext() 91 if (memmove_s(p, capacity, context->szRead, context->rCapacity) != EOK) { in ExpandReadCache() 102 char *pFree = context->szRead; in ExpandReadCache() 103 context->szRead = p; in ExpandReadCache() 176 if (tmp > 0 && memmove_s(context->szRead + context->rEnd, tmp, buf, tmp) != EOK) { in ContextAppendRead() 179 if (tmp < len && memmove_s(context->szRead, len - tmp, buf + tmp, len - tmp) != EOK) { in ContextAppendRead() 230 if (memmove_s(buf, len, context->szRead + context->rBegin, len) != EOK) { in ContextGetReadRecord() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/ipc_framework/cRPC/unittest/ |
H A D | context_test.cpp | 100 if (memmove_s(p, capacity, context->szRead, context->rCapacity) != EOK) { in ExpandReadCache() 109 char *pFree = context->szRead; in ExpandReadCache() 110 context->szRead = p; in ExpandReadCache() 126 …if (memmove_s(context->szRead + context->rEnd, context->rCapacity - context->rEnd, buf, len) != EO… in ContextAppendRead() 132 if (tmp > 0 && memmove_s(context->szRead + context->rEnd, tmp, buf, tmp) != EOK) { in ContextAppendRead() 135 if (tmp < len && memmove_s(context->szRead, len - tmp, buf + tmp, len - tmp) != EOK) { in ContextAppendRead()
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_base/ |
H A D | context_test.cpp | 100 if (memmove_s(p, capacity, context->szRead, context->rCapacity) != EOK) { in ExpandReadCache() 109 context->szRead = p; in ExpandReadCache() 124 …if (memmove_s(context->szRead + context->rEnd, context->rCapacity - context->rEnd, buf, len) != EO… in ContextAppendRead() 130 if (tmp > 0 && memmove_s(context->szRead + context->rEnd, tmp, buf, tmp) != EOK) { in ContextAppendRead() 133 if (tmp < len && memmove_s(context->szRead, len - tmp, buf + tmp, len - tmp) != EOK) { in ContextAppendRead()
|
/ohos5.0/foundation/communication/wifi/wifi/base/cRPC/include/ |
H A D | context.h | 29 char *szRead; /* read buffer */ member
|