/arkcompiler/runtime_core/static_core/libpandabase/serializer/ |
H A D | serializer.h | 119 uint32_t strSize, size_t value) in BufferToTypeUnpackString() 121 if (size < strSize) { in BufferToTypeUnpackString() 125 out.resize(strSize); in BufferToTypeUnpackString() 126 memcpy_s(out.data(), strSize, data, strSize); in BufferToTypeUnpackString() 127 return value + strSize; in BufferToTypeUnpackString() 134 uint32_t strSize = 0; in BufferToType() local 135 auto r = BufferToType(data, size, strSize); in BufferToType() 136 if (!r || strSize == 0) { in BufferToType() 142 return BufferToTypeUnpackString(data, size, out, strSize, in BufferToType() 118 BufferToTypeUnpackString(const uint8_t *data, size_t size, std::string &out, uint32_t strSize, size_t value) BufferToTypeUnpackString() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
H A D | heap_tracker_third_test.cpp | 230 int strSize = testString.size(); in HWTEST_F_L0() local 231 bool isFileStream = testFileStream.WriteChunk(testString.data(), strSize); in HWTEST_F_L0() 238 strSize = testString.size(); in HWTEST_F_L0() 239 isFileStream = tmpFileStream.WriteChunk(testString.data(), strSize); in HWTEST_F_L0() 250 strSize = testString.size(); in HWTEST_F_L0() 251 isFileStream = fileStream.WriteChunk(testString.data(), strSize); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
H A D | sample_writer.cpp | 55 size_t strSize = moduleInfo.pathname.length(); in WriteModule() local 60 writeStreamPtr_->write(reinterpret_cast<const char *>(&strSize), sizeof(moduleInfo.pathname.length())); in WriteModule()
|
H A D | sample_reader-inl.h | 141 size_t strSize = ReadUintptrTBitMisaligned(¤tModulePtr[PANDA_FILE_NAME_SIZE_OFFSET]); in GetNextModule() local 143 moduleOut->pathname = std::string(strPtr, strSize); in GetNextModule()
|
/arkcompiler/toolchain/tooling/client/domain/ |
H A D | profiler_client.cpp | 212 size_t strSize = data.size(); in WriteCpuProfileForFile() local 213 ofs.write(data.c_str(), strSize); in WriteCpuProfileForFile()
|
H A D | heapprofiler_client.cpp | 345 size_t strSize = data.size(); in WriteHeapProfilerForFile() local 346 ofs.write(data.c_str(), strSize); in WriteHeapProfilerForFile()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | tagged_hash_table.h | 254 inline int FindEntry(const uint8_t* str, int strSize) in FindEntry() argument 259 int32_t hash = static_cast<int32_t>(Derived::Hash(str, strSize)); in FindEntry() 270 if (Derived::IsMatch(str, strSize, keyValue)) { in FindEntry()
|
H A D | tagged_dictionary.h | 45 static int Hash(const uint8_t* str, int strSize);
|
H A D | tagged_dictionary.cpp | 40 int NameDictionary::Hash(const uint8_t* str, int strSize) in Hash() argument 42 uint32_t hash = EcmaString::ComputeHashForData(str, strSize, 0); in Hash()
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
H A D | snapshot.cpp | 261 size_t strSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile() local 271 writer.write(reinterpret_cast<char *>(str) + headerSize, strSize - headerSize); in WriteToFile()
|
H A D | snapshot_processor.cpp | 1328 size_t strSize = EcmaStringAccessor(str).ObjectSize(); in DeserializeString() local 1329 strSize = AlignUp(strSize, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in DeserializeString() 1339 if (UNLIKELY(strSize > MAX_REGULAR_HEAP_OBJECT_SIZE)) { in DeserializeString() 1340 newObj = hugeSpace->Allocate(thread, strSize); in DeserializeString() 1342 newObj = sHeap_->GetOldSpace()->TryAllocateAndExpand(thread, strSize, true); in DeserializeString() 1348 if (memcpy_s(ToVoidPtr(newObj), strSize, str, strSize) != EOK) { in DeserializeString() 1357 stringBegin += strSize; in DeserializeString()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | g1gc_test.cpp | 1080 size_t strSize = GetObjectSize(array->Get<ObjectHeader *>(0)); in TEST_F() local 1105 ASSERT_EQ(arraySize + strSize, region->GetLiveBytes()); in TEST_F() 1106 ASSERT_EQ(strSize, region->GetGarbageBytes()); in TEST_F()
|