Home
last modified time | relevance | path

Searched refs:ObexUtils (Results 1 - 6 of 6) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_utils.cpp31 int ObexUtils::g_bigEndian = -1;
33 bool ObexUtils::SysIsBigEndian() in SysIsBigEndian()
51 std::mutex ObexUtils::g_mutex;
53 void ObexUtils::DataReverse(uint8_t *data, const uint16_t &len, const uint8_t &unitLen) in DataReverse()
71 void ObexUtils::SetBufData16(uint8_t *bigEndData, uint16_t pos, const uint16_t &value) in SetBufData16()
76 void ObexUtils::SetBufData32(uint8_t *bigEndData, uint16_t pos, const uint32_t &value) in SetBufData32()
81 void ObexUtils::SetBufData64(uint8_t *bigEndData, uint16_t pos, const uint64_t &value) in SetBufData64()
86 uint16_t ObexUtils::GetBufData16(const uint8_t *bigEndData, uint16_t pos) in GetBufData16()
91 uint32_t ObexUtils::GetBufData32(const uint8_t *bigEndData, uint16_t pos) in GetBufData32()
96 uint64_t ObexUtils
[all...]
H A Dobex_utils.h27 class ObexUtils { class
53 ObexUtils() = default;
54 virtual ~ObexUtils() = default;
H A Dobex_headers.cpp103 uint16_t maxPacketLength = ObexUtils::GetBufData16(buf, pos); in ParseFields()
118 uint16_t maxPacketLength = ObexUtils::GetBufData16(buf, pos); in ParseFields()
145 AppendWord(headerId, ObexUtils::GetBufData32(buf, pos)); in ParseOptionalHeaders()
163 uint16_t packetLengthForCheck = ObexUtils::GetBufData16(buf, pos); in Parse()
184 ObexUtils::ObexHeaderDebug(*this); in Parse()
192 uint16_t dataLen = ObexUtils::GetBufData16(buf, pos) - HDR_BYTES_PREFIX_LENGTH; in ParseBytes()
217 uint16_t bytesLen = ObexUtils::GetBufData16(buf, pos) - HDR_UNICODE_PREFIX_LENGTH; in ParseUnicodeText()
225 if (!ObexUtils::SysIsBigEndian()) { in ParseUnicodeText()
226 ObexUtils::DataReverse(tmpBuf.get(), bytesLen, UINT16_LENGTH); in ParseUnicodeText()
821 bool isBigEndian = ObexUtils in Build()
[all...]
H A Dobex_socket_transport.cpp51 HILOGI("[%{public}s] Obex Transport Write: %{public}s", tranKey_.c_str(), ObexUtils::ToDebugString(pkt).c_str()); in Write()
142 HILOGI("[%{public}s] Obex Transport Write: %{public}s", tranKey_.c_str(), ObexUtils::ToDebugString(pkt).c_str()); in Write()
296 HILOGI("Obex Transport Read: %{public}s", ObexUtils::ToDebugString(*packetForRead).c_str()); in ProcessOnDataAvailable()
651 mainTran_.tranKey_.c_str(), ObexUtils::ToDebugString(*packetForRead).c_str()); in ProcessOnDataAvailable()
H A Dobex_server.cpp278 uint16_t packetLength = ObexUtils::GetBufData16(&packetBuf[0], 1); in GetObexHeaderFromPacket()
H A Dobex_client.cpp203 uint16_t packetLength = ObexUtils::GetBufData16(&packetBuf[0], 1); in GetObexHeaderFromPacket()

Completed in 7 milliseconds