Home
last modified time | relevance | path

Searched refs:length_ (Results 1 - 25 of 73) sorted by relevance

123

/foundation/communication/bluetooth/frameworks/inner/ipc/common/
H A Dgatt_data.cpp40 : handle_(handle), permissions_(permissions), value_(nullptr), length_(length), uuid_(uuid) in Descriptor()
44 (void)memcpy_s(value_.get(), length_, value, length_); in Descriptor()
47 length_ = 0; in Descriptor()
52 : handle_(src.handle_), permissions_(src.permissions_), value_(nullptr), length_(src.length_), uuid_(src.uuid_) in Descriptor()
54 if (src.value_ != nullptr && src.length_ != 0) { in Descriptor()
55 value_ = std::make_unique<uint8_t[]>(length_); in Descriptor()
56 (void)memcpy_s(value_.get(), length_, src.value_.get(), length_); in Descriptor()
[all...]
H A Dgatt_data.h32 Descriptor() : handle_(0), permissions_(0), value_(nullptr), length_(0), uuid_() {} in Descriptor()
35 : handle_(0), permissions_(permissions), value_(nullptr), length_(0), uuid_(uuid) in Descriptor()
40 : handle_(handle), permissions_(permissions), value_(nullptr), length_(0), uuid_(uuid) in Descriptor()
49 : handle_(src.handle_), permissions_(src.permissions_), value_(std::move(src.value_)), length_(src.length_), in Descriptor()
53 src.length_ = 0; in Descriptor()
56 explicit Descriptor(uint16_t handle) : handle_(handle), permissions_(0), value_(nullptr), length_(0), uuid_() {} in Descriptor()
68 size_t length_; member
75 permissions_(0), value_(nullptr), length_(0), uuid_(), descriptors_() {} in Characteristic()
79 value_(nullptr), length_( in Characteristic()
122 size_t length_; global() member
[all...]
/foundation/communication/netstack/frameworks/native/tls_socket/src/
H A Dsecure_data.cpp29 if (memset_s(data_.get(), length_, 0, length_) != EOK) { in ~SecureData()
35 : length_(secureData.length()), data_(std::make_unique<char[]>(length_ + 1)) in SecureData()
37 if (length_ == 0) { in SecureData()
40 data_.get()[length_] = 0; in SecureData()
41 if (memcpy_s(data_.get(), length_, secureData.c_str(), length_) != EOK) { in SecureData()
50 length_ = length; in SecureData()
51 data_.get()[length_] in SecureData()
[all...]
/foundation/communication/netstack/utils/napi_utils/src/
H A Dsecure_char.cpp26 (void)memset_s(data_.get(), length_, 0, length_); in ~SecureChar()
30 : length_(SecureChar.length()), data_(std::make_unique<char[]>(length_ + 1)) in SecureChar()
32 if (length_ == 0) { in SecureChar()
35 data_.get()[length_] = 0; in SecureChar()
36 if (memcpy_s(data_.get(), length_, SecureChar.c_str(), length_) != EOK) { in SecureChar()
45 length_ = length; in SecureChar()
46 data_.get()[length_] in SecureChar()
[all...]
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_gatt_descriptor.cpp27 : handle_(0), permissions_(permissions), characteristic_(nullptr), value_(nullptr), length_(0), uuid_(uuid) in GattDescriptor()
31 : handle_(handle), permissions_(permissions), characteristic_(nullptr), value_(nullptr), length_(0), uuid_(uuid) in GattDescriptor()
39 length_(src.length_), in GattDescriptor()
42 if (length_ != 0 && src.value_ != nullptr) { in GattDescriptor()
43 value_ = std::make_unique<uint8_t[]>(length_); in GattDescriptor()
44 (void)memcpy_s(value_.get(), length_, src.value_.get(), length_); in GattDescriptor()
47 length_ = 0; in GattDescriptor()
58 length_ in operator =()
[all...]
H A Dbluetooth_gatt_characteristic.cpp33 length_(0), in GattCharacteristic()
47 length_(0), in GattCharacteristic()
59 length_(src.length_), in GattCharacteristic()
63 if (nullptr != src.value_ && 0 != length_) { in GattCharacteristic()
64 value_ = std::make_unique<uint8_t[]>(length_); in GattCharacteristic()
65 (void)memcpy_s(value_.get(), length_, src.value_.get(), length_); in GattCharacteristic()
68 length_ = 0; in GattCharacteristic()
84 length_ in operator =()
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/
H A Dlink_queue.cpp29 length_ = 0; in InitQueue()
34 if (front_ == rear_ && length_ == 0) { in IsEmpty()
42 if (maxSize_ > 0 && length_ >= maxSize_) { in IsFull()
50 return length_; in LengthQueue()
69 length_++; in Enqueue()
84 length_--; in Dequeue()
96 length_ = 0; in FreeNode()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
H A Dgatt_database.h37 size_t length_; member
39 AttributeValue() : value_(nullptr), length_(0) in AttributeValue()
42 AttributeValue(uint8_t **value, size_t length) : value_(nullptr), length_(length) in AttributeValue()
53 auto tmp = std::make_unique<uint8_t[]>(src.length_); in operator =()
55 length_ = src.length_; in operator =()
57 (void)memcpy_s(value_.get(), length_, src.value_.get(), length_); in operator =()
63 AttributeValue(AttributeValue &&src) noexcept : value_(std::move(src.value_)), length_(src.length_) in length_() function
[all...]
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/
H A Dbluetooth_gatt_descriptor_parcel.cpp32 if (!parcel.WriteUint32(length_)) { in Marshalling()
35 for (size_t i = 0; i < length_; i++) { in Marshalling()
75 length_ = length; in ReadFromParcel()
77 uint8_t value[length_]; in ReadFromParcel()
78 for (size_t i = 0; i < length_; i++) { in ReadFromParcel()
84 if (memcpy_s(value_.get(), length, value, length_) != EOK) { in ReadFromParcel()
H A Dbluetooth_gatt_characteristic_parcel.cpp42 if (!parcel.WriteUint32(length_)) { in Marshalling()
45 for (size_t i = 0; i < length_; i++) { in Marshalling()
113 length_ = length; in ReadFromParcel()
115 uint8_t value[length_]; in ReadFromParcel()
116 for (size_t i = 0; i < length_; i++) { in ReadFromParcel()
122 if (memcpy_s(value_.get(), length, value, length_) != EOK) { in ReadFromParcel()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/
H A Dclassic_data_structure.cpp27 : length_(dataLength), type_(type), data_(value) in ClassicDataStructure()
33 length_ = 0; in ~ClassicDataStructure()
39 return length_; in GetLength()
H A Dclassic_data_structure.h88 uint8_t length_ {};
/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_utils.cpp308 (void)memset_s(data_.get(), length_, 0, length_); in GetNowTimeGMT()
312 : length_(secureChar.length()), data_(std::make_unique<char[]>(length_ + 1)) in GetNowTimeGMT()
314 if (length_ == 0) { in GetNowTimeGMT()
317 data_.get()[length_] = 0; in GetNowTimeGMT()
318 if (memcpy_s(data_.get(), length_, secureChar.c_str(), length_) != EOK) { in GetNowTimeGMT()
327 length_ = length; in GetNowTimeGMT()
328 data_.get()[length_] in GetNowTimeGMT()
[all...]
/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/geometry/
H A Dcone.h25 radius_(radius), length_(length), sectors_(sectors) {}; in Cone()
40 return length_; in GetLength()
58 float length_ { 0.0f };
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/
H A Dhid_host_hogp.cpp203 character.length_ = static_cast<size_t>(length - 1); in SendSetReport()
204 character.value_ = std::make_unique<uint8_t[]>(character.length_); in SendSetReport()
237 if ((character.value_ != nullptr) && (character.length_ != 0)) { in ReceiveControlData()
241 event.dataLength_ = static_cast<int>(character.length_ + 1); in ReceiveControlData()
244 if (memcpy_s(event.data_.get() + 1, character.length_, in ReceiveControlData()
245 character.value_.get(), character.length_) != EOK) { in ReceiveControlData()
252 LOG_ERROR("[HOGP]%{public}s():data is null length_=%{public}zu", __FUNCTION__, character.length_); in ReceiveControlData()
566 if (character.length_ != HID_HOST_PNP_ID_SIZE) { in SavePnpInformation()
567 LOG_ERROR("[HOGP] %{public}s:character length_ i in SavePnpInformation()
[all...]
/foundation/multimedia/av_session/frameworks/common/src/
H A Dav_file_descriptor.cpp24 CHECK_AND_RETURN_RET_LOG(out.WriteInt64(length_), false, "write length_ failed"); in WriteToParcel()
32 CHECK_AND_RETURN_RET_LOG(in.ReadInt64(length_), false, "Read length_ failed"); in ReadFromParcel()
/foundation/arkui/napi/sample/native_module_netserver/
H A Dnetserver.h43 length_ = length; in NetServerEvent()
57 if (length_ > 0) { in ToJsObject()
59 napi_create_string_utf8(env_, buffer_, length_, &data); in ToJsObject()
71 size_t length_; member in NetServerEvent
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/
H A Dheif_stream.cpp30 : length_(size), pos_(0), copied_(needCopy) in HeifBufferInputStream()
33 auto *copiedData = new uint8_t[length_]; in HeifBufferInputStream()
34 memcpy_s(copiedData, length_, data, length_); in HeifBufferInputStream()
56 return (end < 0 || posAfterRead <= end) && static_cast<size_t>(posAfterRead) <= length_; in CheckSize()
62 if (static_cast<size_t>(end_pos) > length_) { in Read()
76 if (static_cast<size_t>(position) > length_ || position < 0) in Seek()
/foundation/multimedia/av_codec/services/dfx/
H A Davcodec_dump_utils.cpp46 length_[level - 1] = length_[level - 1] > name.length() ? length_[level - 1] : name.length(); in AddInfo()
123 + name + std::string(length_[level - 1] - name.length(), ' '); in GetDumpString()
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/payload_data/
H A Dget_partial_object_data.cpp62 MtpPacketTool::PutUInt32(outBuffer, length_); in Maker()
82 length_ = length; in SetLength()
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/
H A Dfont_parser.cpp49 length_ = 0; in FontParser()
199 length_ = hb_blob_get_length(hblob); in ParseCmapTable()
200 auto parseCmap = std::make_shared<CmapTableParser>(data_, length_); in ParseCmapTable()
201 auto cmapTable = parseCmap->Parse(data_, length_); in ParseCmapTable()
230 length_ = hb_blob_get_length(hblob); in ParseNameTable()
231 auto parseName = std::make_shared<NameTableParser>(data_, length_); in ParseNameTable()
232 auto nameTable = parseName->Parse(data_, length_); in ParseNameTable()
266 length_ = hb_blob_get_length(hblob); in ParsePostTable()
267 auto parsePost = std::make_shared<PostTableParser>(data_, length_); in ParsePostTable()
268 auto postTable = parsePost->Parse(data_, length_); in ParsePostTable()
[all...]
/foundation/bundlemanager/app_domain_verify/frameworks/verifier/src/
H A Dverify_http_task.cpp69 if (length_ + length > MAX_RESPONSE_LEN) { in OnDataReceive()
73 length_ += length; in OnDataReceive()
/foundation/multimedia/av_session/interfaces/inner_api/native/session/include/
H A Dav_file_descriptor.h29 int64_t length_; member
/foundation/communication/bluetooth_service/services/bluetooth/server/src/
H A Dbluetooth_gatt_client_server.cpp412 character.length_ = characteristic->length_; in WriteCharacteristic()
414 characteristic->length_ = 0; in WriteCharacteristic()
426 character.length_ = characteristic->length_; in SignedWriteCharacteristic()
428 characteristic->length_ = 0; in SignedWriteCharacteristic()
460 desc.length_ = descriptor->length_; in WriteDescriptor()
462 descriptor->length_ = 0; in WriteDescriptor()
H A Dbluetooth_gatt_server_server.cpp362 character.length_ = characteristic->length_; in NotifyClient()
364 characteristic->length_ = 0; in NotifyClient()
401 character.length_ = characteristic->length_; in RespondCharacteristicRead()
403 characteristic->length_ = 0; in RespondCharacteristicRead()
442 desc.length_ = descriptor->length_; in RespondDescriptorRead()
444 descriptor->length_ = 0; in RespondDescriptorRead()

Completed in 10 milliseconds

123