Home
last modified time | relevance | path

Searched refs:bodyLen (Results 1 – 2 of 2) sorted by relevance

/base/security/device_auth/common_lib/impl/src/
Dhc_tlv_parser.c71 int32_t bodyLen = tlv->getlen(tlv); in GetlenTlvNode() local
72 if (bodyLen < 0 || bodyLen > MAX_TLV_LENGTH) { in GetlenTlvNode()
75 tlv->length = bodyLen + sizeof(tlv->tag) + sizeof(tlv->length); in GetlenTlvNode()
89 int32_t bodyLen = tlv->getlen(tlv); in EncodeTlvNode() local
90 if (bodyLen < 0 || bodyLen > MAX_TLV_LENGTH) { in EncodeTlvNode()
92 } else if (bodyLen == 0) { in EncodeTlvNode()
98 ParcelWriteUint16Revert(parcel, bodyLen); in EncodeTlvNode()
101 ParcelWriteUint16(parcel, bodyLen); in EncodeTlvNode()
106 ResetParcel(parcel, sizeof(uint16_t) + sizeof(uint16_t) + bodyLen, 0); in EncodeTlvNode()
109 tlv->length = (uint16_t)bodyLen; in EncodeTlvNode()
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_body_part.cpp379 uint32_t bodyLen = 0; in EncodeMmsBodyPart() local
380 std::unique_ptr<char[]> bodyBuff = ReadBodyPartBuffer(bodyLen); in EncodeMmsBodyPart()
385 if (!encodeBuffer.WriteBuffer(std::move(bodyBuff), bodyLen)) { in EncodeMmsBodyPart()