Home
last modified time | relevance | path

Searched refs:tokenLen (Results 1 - 3 of 3) sorted by relevance

/foundation/communication/ipc/ipc/native/src/c_api/source/
H A Dipc_cparcel.cpp333 int tokenLen = strlen(token); in OH_IPCParcel_WriteInterfaceToken() local
334 if (tokenLen == 0 || tokenLen > MAX_PARCEL_LEN) { in OH_IPCParcel_WriteInterfaceToken()
337 std::u16string u16Token = OHOS::Str8ToStr16(std::string(token, tokenLen)); in OH_IPCParcel_WriteInterfaceToken()
338 if (u16Token.length() == 0 && tokenLen != 0) { in OH_IPCParcel_WriteInterfaceToken()
339 ZLOGE(LOG_LABEL, "convert token to u16string failed: %{public}d", tokenLen); in OH_IPCParcel_WriteInterfaceToken()
344 ZLOGE(LOG_LABEL, "WriteInterfaceToken failed! token len:%{public}d", tokenLen); in OH_IPCParcel_WriteInterfaceToken()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/mini_discover/
H A Dcoap_def.h54 uint32_t tokenLen : 4; member
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/
H A Dcoap_adapter.c134 const uint8_t *dataPos = buf + HEADER_LEN + pkt->header.tokenLen; in CoapParseOptionsAndPayloadEx()
189 pkt->header.tokenLen = (((uint32_t)buf[0] & 0x0F)); in CoapParseHeader()
224 if (pkt->header.tokenLen > MAX_TOK_LEN) { in CoapSoftBusDecodeEx()
234 if (pkt->header.tokenLen == 0) { in CoapSoftBusDecodeEx()
237 } else if ((uint32_t)(pkt->header.tokenLen + HEADER_LEN) > bufLen) { in CoapSoftBusDecodeEx()
242 pkt->token.len = pkt->header.tokenLen; in CoapSoftBusDecodeEx()
500 pkt->header.tokenLen = pkt->token.len & 0x0F; in CoapAddToken()
509 if (memcpy_s(&buf->readWriteBuf[buf->len], buf->size - buf->len, token->buffer, pkt->header.tokenLen) != EOK) { in CoapAddToken()

Completed in 2 milliseconds