Home
last modified time | relevance | path

Searched refs:capacity (Results 1 - 19 of 19) sorted by relevance

/developtools/hapsigner/hapsigntool_cpp/common/src/
H A Dbyte_buffer.cpp41 ByteBuffer::ByteBuffer() : buffer(nullptr), position(0), limit(0), capacity(0) in ByteBuffer()
45 ByteBuffer::ByteBuffer(int32_t bufferCapacity) : buffer(nullptr), position(0), limit(0), capacity(0) in ByteBuffer()
50 ByteBuffer::ByteBuffer(const char* arr, int32_t length) : buffer(nullptr), position(0), limit(0), capacity(0) in ByteBuffer()
56 ByteBuffer::ByteBuffer(const ByteBuffer& other) : buffer(nullptr), position(0), limit(0), capacity(0) in ByteBuffer()
59 if (buffer != nullptr && capacity > 0) { in ByteBuffer()
60 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in ByteBuffer()
82 capacity = bufferCapacity; in Init()
97 if (buffer != nullptr && other.GetBufferPtr() != nullptr && capacity > 0) { in operator =()
98 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in operator =()
152 return capacity; in GetCapacity()
[all...]
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
H A Dftrace_field_parser_test.cpp38 if (memcpy_s(&buffer_[offset], buffer_.capacity() - offset, &value, sizeof(value))) { in AppendInt()
54 if (memcpy_s(&buffer_[offset], buffer_.capacity() - offset, &str[0], str.size())) { in AppendString()
/developtools/smartperf_host/trace_streamer/test/unittest/rawtrace/
H A Dftrace_field_processor_test.cpp38 if (memcpy_s(&fieldBuffer_[offset], fieldBuffer_.capacity() - offset, &value, sizeof(value))) { in AppendIntFiled()
54 if (memcpy_s(&fieldBuffer_[offset], fieldBuffer_.capacity() - offset, &str[0], str.size())) { in AppendString()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/utils/
H A DHapUtils.java392 int capacity = source.capacity(); in sliceBuffer()
393 if (startPos < 0 || endPos < startPos || endPos > capacity) { in sliceBuffer()
395 "startPos: " + startPos + ", endPos: " + endPos + ", capacity: " + capacity); in sliceBuffer()
422 byte[] signatureBlockBytes = new byte[header.capacity()]; in reverseSliceBuffer()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
H A DVerifyHap.java363 hapSigningBlock.capacity() - ZIP_HEAD_OF_SIGNING_BLOCK_LENGTH, in getHapSignatureSchemeBlockAndOptionalBlocks()
364 hapSigningBlock.capacity()); in getHapSignatureSchemeBlockAndOptionalBlocks()
366 hapSigningBlock.capacity() - ZIP_HEAD_OF_SIGNING_BLOCK_LENGTH); in getHapSignatureSchemeBlockAndOptionalBlocks()
368 byte[] signatureValueBytes = new byte[value.capacity()]; in getHapSignatureSchemeBlockAndOptionalBlocks()
373 int current = value.capacity() - ZIP_HEAD_OF_SUBSIGNING_BLOCK_LENGTH * blockCount; in getHapSignatureSchemeBlockAndOptionalBlocks()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/fsverity/
H A DMerkleTreeBuilder.java189 int bufferSize = buffer.capacity(); in runHashTask()
215 long size = inputBuffer.capacity(); in transInputDataToHashData()
290 dataRoundupChunkSize(generateHashBuffer, originalHashBuffer.capacity(), digestSize); in generateHashDataByHashData()
/developtools/smartperf_host/trace_streamer/src/parser/pbreader_parser/xpower_parser/
H A Dpbreader_xpower_parser.cpp70 auto capacity = realBattery.capacity(); in ProcessRealBattery() local
72 capacity); in ProcessRealBattery()
/developtools/hdc/hdc_rust/src/common/
H A Duds.rs143 let capacity = mem::size_of_val(&addr.addr) as socklen_t; in wrap_accept()
144 addr.len = capacity; in wrap_accept()
H A Dhdctransfer.rs326 let capacity = read_len as i32; in spawn_handler()
336 capacity, in spawn_handler()
337 capacity, in spawn_handler()
/developtools/hapsigner/hapsigntool_cpp_test/fuzztest/hapsign/hapsign001_fuzzer/
H A Dhapsign001_fuzzer.cpp178 int capacity = 120; in HapSignTest005() local
182 testblock.optionalBlockValue.SetCapacity(capacity); in HapSignTest005()
/developtools/hapsigner/hapsigntool_cpp/common/include/
H A Dbyte_buffer.h42 * Equal to capacity when writing status
43 * Capacity: represents the capacity of ByteBuffer, which is the maximum number of bytes that can be stored
52 * Void clear()// Reset to initial state: mark=-1, position=0, limit=capacity
54 * then move the position to the next position of this data segment and set the limit value to capacity
129 int32_t capacity = 0; member in OHOS::SignatureTools::ByteBuffer
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
H A DZipUtils.java80 int searchBufferSize = searchBuffer.capacity(); in findEocdInSearchBuffer()
/developtools/hdc/src/daemon/
H A Djdwp.cpp305 size_t capacity = sizeof(saddr.sun_path); in UvPipeBind() local
306 size_t min = size < capacity ? size : capacity; in UvPipeBind()
310 saddr.sun_path[capacity - 1] = '\0'; in UvPipeBind()
/developtools/profiler/device/plugins/native_daemon/include/
H A Dhashlist.h157 // capacity
166 inline std::size_t capacity() const in capacity() function in OHOS::Developtools::NativeDaemon::HashList
/developtools/hiperf/test/unittest/common/native/
H A Dhashlist_test.cpp45 ASSERT_EQ(hashList.capacity(), size_); in HWTEST_F()
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
H A Dhashlist_test.cpp44 ASSERT_EQ(hashList.capacity(), size_); in HWTEST_F()
/developtools/profiler/device/plugins/xpower_plugin/test/
H A Dxpower_decoder.cpp140 cJSON_AddNumberToObject(cjsonBattery, "capacity", realBattery.capacity()); in CreateRealBattery()
/developtools/hiperf/include/
H A Dhashlist.h157 // capacity
166 inline std::size_t capacity() const in capacity() function in OHOS::Developtools::HiPerf::HashList
/developtools/profiler/hiebpf/include/
H A Dvmlinux.h7692 __u64 capacity; member
22766 long unsigned int capacity; member
23680 long unsigned int capacity; member
117654 int capacity; global() member
123960 sector_t capacity; global() member
124049 unsigned int capacity; global() member
135583 int capacity; global() member
138598 unsigned int capacity; global() member
[all...]

Completed in 419 milliseconds