/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | png_image_chunk_utils.cpp | 99 DataBuf PngImageChunkUtils::GetRawTextFromZtxtChunk(const DataBuf &chunkData, size_t keySize, in GetRawTextFromZtxtChunk() argument 106 if (chunkData.CData(keySize + CHUNKDATA_KEYSIZE_OFFSET_ONE) == nullptr) { in GetRawTextFromZtxtChunk() 107 IMAGE_LOGE("Failed to get raw text from itxt: keySize + 1 greater than chunklength."); in GetRawTextFromZtxtChunk() 110 if (*(chunkData.CData(keySize + 1)) != CHUNK_COMPRESS_METHOD_VALID) { in GetRawTextFromZtxtChunk() 113 CHUNK_COMPRESS_METHOD_VALID, *(chunkData.CData(keySize + 1))); in GetRawTextFromZtxtChunk() 117 size_t compressedTextSize = chunkData.Size() - keySize - NULL_CHAR_AMOUNT; in GetRawTextFromZtxtChunk() 119 const byte *compressedText = chunkData.CData(keySize + NULL_CHAR_AMOUNT); in GetRawTextFromZtxtChunk() 130 DataBuf PngImageChunkUtils::GetRawTextFromTextChunk(const DataBuf &chunkData, size_t keySize, DataBuf &rawText) in GetRawTextFromTextChunk() argument 132 size_t rawTextsize = chunkData.Size() - keySize - 1; in GetRawTextFromTextChunk() 134 const byte *textPosition = chunkData.CData(keySize in GetRawTextFromTextChunk() 154 CheckChunkData(const DataBuf &chunkData, size_t keySize) CheckChunkData() argument 174 GetRawTextFromItxtChunk(const DataBuf &chunkData, size_t keySize, DataBuf &rawText, bool &isCompressed) GetRawTextFromItxtChunk() argument 225 GetRawTextFromChunk(const DataBuf &chunkData, size_t keySize, TextChunkType chunkType, bool &isCompressed) GetRawTextFromChunk() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/ |
H A D | cache_data.cpp | 147 void CacheData::Rewrite(const void *key, const size_t keySize, const void *value, const size_t valueSize)
in Rewrite() argument 149 if (maxKeySize_ < keySize || maxValueSize_ < valueSize ||
in Rewrite() 150 maxTotalSize_ < keySize + valueSize || keySize == 0 || valueSize <= 0) {
in Rewrite() 154 std::shared_ptr<DataPointer> fakeDataPointer(std::make_shared<DataPointer>(key, keySize, false));
in Rewrite() 161 std::shared_ptr<DataPointer> keyPointer(std::make_shared<DataPointer>(key, keySize, true));
in Rewrite() 163 newTotalSize = totalSize_ + keySize + valueSize;
in Rewrite() 164 if (IfSizeValidate(newTotalSize, keySize + valueSize)) {
in Rewrite() 169 if (IfSkipClean(keySize + valueSize)) {
in Rewrite() 199 std::tuple<CacheData::ErrorCode, size_t> CacheData::Get(const void *key, const size_t keySize,
in Get() argument 252 size_t keySize = keyPointer->GetSize(); Serialize() local 305 size_t keySize = shaderBuffer->keySize_; DeSerialize() local [all...] |
H A D | shader_cache.cpp | 95 size_t keySize = key.GetSize();
in Load() local 120 res = cacheData_->Get(key.GetData(), keySize, valueBuffer, bufferSize_);
in Load() 137 res = cacheData_->Get(key.GetData(), keySize, valueBuffer, valueSize);
in Load() 189 size_t keySize = key.GetSize();
in Store() local 190 if (keySize == 0 || valueSize == 0 || valueSize >= MAX_VALUE_SIZE) {
in Store() 201 cacheData_->Rewrite(key.GetData(), keySize, value, valueSize);
in Store()
|
H A D | cache_data.h | 44 void Rewrite(const void *key, const size_t keySize, const void *value, const size_t valueSize);
46 std::tuple<CacheData::ErrorCode, size_t> Get(const void *key, const size_t keySize,
|
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/ |
H A D | egl_blob_cache.h | 57 size_t keySize; member 94 static void SetBlobFunc(const void* key, EGLsizeiANDROID keySize, const void* value, 98 static EGLsizeiANDROID GetBlobFunc(const void *key, EGLsizeiANDROID keySize, void *value, 102 void SetBlobLock(const void *key, EGLsizeiANDROID keySize, const void *value, 106 EGLsizeiANDROID GetBlobLock(const void *key, EGLsizeiANDROID keySize, void *value, 109 void SetBlob(const void *key, EGLsizeiANDROID keySize, const void *value, 112 EGLsizeiANDROID GetBlob(const void *key, EGLsizeiANDROID keySize, void *value,
|
H A D | egl_blob_cache.cpp | 109 void BlobCache::SetBlobFunc(const void* key, EGLsizeiANDROID keySize, const void* value, in SetBlobFunc() argument 112 BlobCache::Get()->SetBlobLock(key, keySize, value, valueSize); in SetBlobFunc() 114 EGLsizeiANDROID BlobCache::GetBlobFunc(const void *key, EGLsizeiANDROID keySize, void *value, in GetBlobFunc() argument 117 return BlobCache::Get()->GetBlobLock(key, keySize, value, valueSize); in GetBlobFunc() 120 void BlobCache::SetBlobLock(const void* key, EGLsizeiANDROID keySize, const void* value, in SetBlobLock() argument 124 SetBlob(key, keySize, value, valueSize); in SetBlobLock() 126 EGLsizeiANDROID BlobCache::GetBlobLock(const void *key, EGLsizeiANDROID keySize, void *value, in GetBlobLock() argument 130 return GetBlob(key, keySize, value, valueSize); in GetBlobLock() 141 void BlobCache::SetBlob(const void *key, EGLsizeiANDROID keySize, const void *value, in SetBlob() argument 144 if (keySize < in SetBlob() 192 GetBlob(const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize) GetBlob() argument [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rd_utils.cpp | 484 const size_t keySize = encryptedKey.size() * 2 + 1; // 2 hex number can represent a uint8_t, 1 is for '/0' in RdDbBackup() local 485 char key[keySize]; in RdDbBackup() 487 info.hexPassword = (encryptedKey.size() > 0) ? GetEncryptKey(encryptedKey, key, keySize) : nullptr; in RdDbBackup() 489 errno_t err = memset_s(key, keySize, 0, keySize); in RdDbBackup() 491 LOG_ERROR("can not memset 0, size %{public}zu", keySize); in RdDbBackup() 505 const size_t keySize = encryptedKey.size() * 2 + 1; // 2 hex number can represent a uint8_t, 1 is for '/0' in RdDbRestore() local 506 char key[keySize]; in RdDbRestore() 508 info.hexPassword = (encryptedKey.size() > 0) ? GetEncryptKey(encryptedKey, key, keySize) : nullptr; in RdDbRestore() 510 errno_t err = memset_s(key, keySize, in RdDbRestore() 526 const size_t keySize = encryptedKey.size() * 2 + 1; // 2 hex number can represent a uint8_t, 1 is for '/0' RdDbRekey() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include/ |
H A D | png_image_chunk_utils.h | 49 static DataBuf GetRawTextFromZtxtChunk(const DataBuf &chunkData, size_t keySize, 53 static DataBuf GetRawTextFromTextChunk(const DataBuf &chunkData, size_t keySize, DataBuf &rawText); 56 static DataBuf GetRawTextFromItxtChunk(const DataBuf &chunkData, size_t keySize, 60 static DataBuf GetRawTextFromChunk(const DataBuf &chunkData, size_t keySize,
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/src/ |
H A D | rd_sqlite_utils.cpp | 174 int keySize = sqlite3_column_bytes(statement, index); in GetColumnBlobValue() local 175 if (keySize < 0 || keySize > MAX_BLOB_READ_SIZE) { in GetColumnBlobValue() 176 GLOGW("[RDSQLiteUtils][Column blob] size over limit:%d", keySize); in GetColumnBlobValue() 182 if (keySize == 0 || keyRead == nullptr) { in GetColumnBlobValue() 185 value.resize(keySize); in GetColumnBlobValue() 186 value.assign(keyRead, keyRead + keySize); in GetColumnBlobValue()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_data_cloud_sync_virtual.c | 57 int32_t LnnDBDataAddChangeSyncToCache(const char **key, const char **value, int32_t keySize) in LnnDBDataAddChangeSyncToCache() argument 61 (void)keySize; in LnnDBDataAddChangeSyncToCache()
|
H A D | lnn_data_cloud_sync.c | 673 static void FreeKeyAndValue(const char **key, const char **value, int32_t keySize) in FreeKeyAndValue() argument 675 for (int32_t i = 0; i < keySize; i++) { in FreeKeyAndValue() 691 int32_t LnnDBDataAddChangeSyncToCache(const char **key, const char **value, int32_t keySize) in LnnDBDataAddChangeSyncToCache() argument 693 if (key == NULL || value == NULL || keySize == 0) { in LnnDBDataAddChangeSyncToCache() 694 LNN_LOGE(LNN_BUILDER, "invalid param or keySize is none"); in LnnDBDataAddChangeSyncToCache() 695 if (key == NULL && value != NULL && keySize != 0) { in LnnDBDataAddChangeSyncToCache() 696 FreeKeyOrValue(value, keySize); in LnnDBDataAddChangeSyncToCache() 697 } else if (key != NULL && value == NULL && keySize != 0) { in LnnDBDataAddChangeSyncToCache() 698 FreeKeyOrValue(key, keySize); in LnnDBDataAddChangeSyncToCache() 703 for (int32_t i = 0; i < keySize; in LnnDBDataAddChangeSyncToCache() [all...] |
/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_map.c | 107 uint32_t keySize = strlen(key) + 1; in MapCreateNode() local 108 keySize = keySize + (SHIFT_ALIGN_BYTE - keySize % SHIFT_ALIGN_BYTE); in MapCreateNode() 109 MapNode *node = (MapNode *)SoftBusCalloc(sizeof(*node) + keySize + valueSize); in MapCreateNode() 117 node->value = (uint8_t *)node + sizeof(*node) + keySize; in MapCreateNode() 119 if (memcpy_s(node->key, keySize, key, strlen(key) + 1) != EOK) { in MapCreateNode()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | distributeddb_data_generate_unit_test.cpp | 66 void GenerateRecords(int recordNum, std::vector<Entry> &entries, std::vector<Key> &keys, int keySize, int valSize) in GenerateRecords() argument 73 if (keySize <= len) { in GenerateRecords() 80 entry.key.assign((keySize - len), '0'); in GenerateRecords()
|
/foundation/systemabilitymgr/safwk/services/safwk/src/ |
H A D | api_cache_manager.cpp | 109 size_t keySize = data.GetDataSize(); in PreSendRequest() local 110 std::vector<uint8_t> keyVec(key, key + keySize); in PreSendRequest() 136 size_t keySize = data.GetDataSize(); in PostSendRequest() local 137 std::vector<uint8_t> keyVec(key, key + keySize); in PostSendRequest()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/include/ |
H A D | document_key.h | 38 int32_t keySize; member
|
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_data_cloud_sync_test.cpp | 138 int32_t keySize = 0; in HWTEST_F() local 139 int32_t ret = LnnDBDataAddChangeSyncToCache(key, value, keySize); in HWTEST_F()
|
/foundation/ability/form_fwk/interfaces/inner_api/src/ |
H A D | form_js_info.cpp | 276 size_t keySize = keys.size(); in ReadPkgNameMap() local 278 if (keySize != valueSize) { in ReadPkgNameMap() 285 for (size_t index = 0; index < keySize; index++) { in ReadPkgNameMap()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/ |
H A D | distributeddb_data_generator.cpp | 85 if ((entrySize.keySize < len) || (entrySize.valSize < len)) { in GenerateRandRecord() 91 for (unsigned int i = 0; i < entrySize.keySize - len; i++) { in GenerateRandRecord() 230 std::vector<DistributedDB::Key> &allKeys, int recordNum, unsigned int keySize, unsigned int valSize) in GenerateFixedRecords() 236 entry.key.assign((keySize - len), 'k'); in GenerateFixedRecords() 259 if ((entrySize.keySize < len) || (entrySize.valSize < (len + IMAGE_VALUE_PRE.size()))) { in GenerateOneRecordForImage() 264 for (unsigned int cnt = 0; cnt < (entrySize.keySize - len - keyPrefix.size()); cnt++) { in GenerateOneRecordForImage() 289 if ((entrySize.keySize < keyPrefix.size() + len) || (entrySize.valSize < valPrefix.size() + len)) { in GenerateAppointPrefixAndSizeRecord() 295 entry.key.insert(entry.key.end(), entrySize.keySize - keyPrefix.size() - len, '0'); in GenerateAppointPrefixAndSizeRecord() 333 std::vector<DistributedDB::Key> &allKeys, int recordNum, unsigned int keySize, unsigned int valSize) in GenerateFixedLenRandRecords() 346 for (unsigned int operCnt = 0; operCnt < keySize in GenerateFixedLenRandRecords() 229 GenerateFixedRecords(std::vector<DistributedDB::Entry> &entries, std::vector<DistributedDB::Key> &allKeys, int recordNum, unsigned int keySize, unsigned int valSize) GenerateFixedRecords() argument 332 GenerateFixedLenRandRecords(std::vector<DistributedDB::Entry> &entries, std::vector<DistributedDB::Key> &allKeys, int recordNum, unsigned int keySize, unsigned int valSize) GenerateFixedLenRandRecords() argument [all...] |
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/ |
H A D | lnn_data_cloud_sync.h | 80 int32_t LnnDBDataAddChangeSyncToCache(const char **key, const char **value, int32_t keySize);
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/ |
H A D | kvstore_datashare_bridge_test.cpp | 278 size_t keySize = 0; in HWTEST_F() local 284 keySize += entry.key.Size(); in HWTEST_F() 287 EXPECT_EQ(writer.GetKey().Size(), keySize); in HWTEST_F()
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/dbstorage/ |
H A D | device_profile_storage.cpp | 223 const size_t keySize = keys.size(); in PutDeviceProfileBatch() local 225 HILOGI("keySize = %{public}zu, valSize = %{public}zu", keySize, valSize); in PutDeviceProfileBatch() 226 if (keySize != valSize) { in PutDeviceProfileBatch() 234 for (uint32_t i = 0; i < keySize; i++) { in PutDeviceProfileBatch()
|
/foundation/communication/netmanager_base/bpf/bpf_syscall_wrapper/ |
H A D | bpf_syscall_wrapper.h | 47 * @param keySize key size in bytes 53 static int CreateMap(bpf_map_type mapType, uint32_t keySize, uint32_t valueSize, uint32_t maxEntries,
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/include/ |
H A D | distributeddb_data_generator.h | 28 unsigned int keySize = 0; member 32 this->keySize = keySizeInput; in Set() 536 int recordNum, unsigned int keySize, unsigned int valSize); 554 int recordNum, unsigned int keySize, unsigned int valSize);
|
/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/ |
H A D | preferences_db_adapter.cpp | 423 uint32_t keySize = 0; in GetAllInner() local 425 ret = PreferenceDbAdapter::GetApiInstance().GetItemSizeApi(resultSet, &keySize, &valueSize); in GetAllInner() 430 dataItem.first.resize(keySize); in GetAllInner()
|
/foundation/communication/netmanager_base/bpf/bpf_loader/ |
H A D | bpf_loader.h | 77 unsigned int keySize; member
|