Home
last modified time | relevance | path

Searched refs:HEADER_LEN (Results 1 - 8 of 8) sorted by relevance

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/src/
H A Ddata_buffer.h48 static const uint32_t HEADER_LEN = sizeof(HeaderInfo); member in OHOS::AppDistributedKv::DataBuffer
54 static constexpr uint32_t MAX_TRANSFER_SIZE = 1024 * 1024 * 5 - HEADER_LEN;
69 uint8_t headArray[DataBuffer::HEADER_LEN];
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/
H A Dstream_packetizer.cpp36 total += TwoLevelsTlv::HEADER_LEN + TwoLevelsTlv::NUMS_LEN; in CalculateExtSize()
37 total += TwoLevelsTlv::HEADER_LEN + TwoLevelsTlv::NUMS_LEN; in CalculateExtSize()
H A Dstream_packet_header.h74 static constexpr int HEADER_LEN = 2; member in Communication::SoftBus::TwoLevelsTlv
105 auto extTlvAlignSize = HEADER_LEN + NUMS_LEN + AlignTo4Bytes(extLen_); in Packetize()
106 if (AddFrameExtData(pos + HEADER_LEN + NUMS_LEN) != 0) { in Packetize()
114 checkSum_ += HEADER_LEN + NUMS_LEN; in Packetize()
/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()
182 if (bufLen < HEADER_LEN) { in CoapParseHeader()
229 if ((bufLen > HEADER_LEN) && (pkt->header.code == 0)) { in CoapSoftBusDecodeEx()
237 } else if ((uint32_t)(pkt->header.tokenLen + HEADER_LEN) > bufLen) { in CoapSoftBusDecodeEx()
281 if (buf->size < HEADER_LEN) { in CoapCreateHeaderEx()
302 pkt->len = buf->len = HEADER_LEN; in CoapCreateHeaderEx()
322 if (buf->len < HEADER_LEN) { in CoapAddData()
394 if (buf->len < HEADER_LEN) { in CoapCheckOption()
484 if (buf->len != HEADER_LEN) { in CoapAddToken()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/mini_discover/
H A Dcoap_adapter.h30 #define HEADER_LEN 4 macro
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/
H A Dwifi_config_info.h64 static constexpr int HEADER_LEN = 2; member in OHOS::SoftBus::WifiConfigInfo
H A Dwifi_config_info.cpp35 Unmarshalling(*pro, std::vector<uint8_t>(config.begin() + HEADER_LEN, config.end())); in WifiConfigInfo()
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_operation_utils.cpp79 static constexpr uint32_t HEADER_LEN = 12; member
394 uint32_t initialData = dataBuffer.size() < HEADER_LEN ? 0 : dataBuffer.size() - HEADER_LEN; in DoRecevieSendObject()
395 int ret = write(fd, &dataBuffer[HEADER_LEN], initialData); in DoRecevieSendObject()

Completed in 5 milliseconds