Home
last modified time | relevance | path

Searched refs:startPos (Results 1 – 4 of 4) sorted by relevance

/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/
Dftrace_field_processor.cpp30 std::string HandleString(const uint8_t* startPos, const uint8_t* endPos, int size) in HandleString() argument
32 TS_CHECK_TRUE_RET(endPos - startPos >= static_cast<ptrdiff_t>(size), ""); in HandleString()
34 const uint8_t* curCursor = startPos; in HandleString()
35 const uint8_t* sectionEnd = startPos + size; in HandleString()
39 curStr.assign(startPos, curCursor); in HandleString()
46 bool FtraceFieldProcessor::HandleTypeData(const uint8_t* startPos, const uint8_t* endPos, void* out… in HandleTypeData() argument
48 ptrdiff_t memSize = endPos - startPos; in HandleTypeData()
50 …TS_CHECK_TRUE(memcpy_s(out, size, startPos, size) == EOK, false, "copy %zu byte to memory region [… in HandleTypeData()
51 size, startPos, endPos); in HandleTypeData()
59 uint8_t* startPos = data + format.offset; in HandleStrField() local
[all …]
Dftrace_field_processor.h33 auto startPos = data + format.offset; in HandleIntField() local
34 HandleTypeData(startPos, endPos, &curValue, format.size); in HandleIntField()
77 …static bool HandleTypeData(const uint8_t* startPos, const uint8_t* endPos, void* out, size_t size);
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/utils/
DHapUtils.java391 private static ByteBuffer sliceBuffer(ByteBuffer source, int startPos, int endPos) { in sliceBuffer() argument
393 if (startPos < 0 || endPos < startPos || endPos > capacity) { in sliceBuffer()
395 "startPos: " + startPos + ", endPos: " + endPos + ", capacity: " + capacity); in sliceBuffer()
402 source.position(startPos); in sliceBuffer()
420 …public static ByteBuffer reverseSliceBuffer(ByteBuffer hapSigningBlock, int startPos, int endPos) { in reverseSliceBuffer() argument
421 ByteBuffer header = HapUtils.sliceBuffer(hapSigningBlock, startPos, endPos); in reverseSliceBuffer()
/developtools/hdc/src/common/
Dbase.cpp1439 string::size_type startPos = 0; in ReplaceAll() local
1440 while ((startPos = str.find(from, startPos)) != string::npos) { in ReplaceAll()
1441 str.replace(startPos, from.length(), to); in ReplaceAll()
1442 startPos += to.length(); // Handles case where 'to' is a substring of 'from' in ReplaceAll()