Home
last modified time | relevance | path

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

/ohos5.0/foundation/filemanagement/dfs_service/test/fuzztest/fuzz_common/
H A Dcloud_fuzzer_helper.h36 basePos = 0; in ResetData()
44 if (baseData == nullptr || objectSize > baseSize - basePos) { in GetData()
47 if (memcpy_s(&object, objectSize, baseData + basePos, objectSize) != EOK) { in GetData()
50 basePos = basePos + objectSize; in GetData()
56 return baseSize - basePos; in GetRemainSize()
61 if (len <= 0 || baseData == nullptr || basePos >= baseSize) { in GetStringFromData()
67 if (basePos >= baseSize) { in GetStringFromData()
68 basePos = 0; in GetStringFromData()
83 size_t basePos{0};
/ohos5.0/base/accesscontrol/sandbox_manager/test/fuzztest/common/
H A Dfuzz_common.h34 if (data_ == nullptr || objectSize > dataLenth_ - basePos) { in GetData()
35 basePos = 0; // reset read point in GetData()
38 errno_t ret = memcpy_s(&object, objectSize, data_ + basePos, objectSize); in GetData()
42 basePos += objectSize; in GetData()
53 size_t basePos = 0; variable
/ohos5.0/base/security/security_component_manager/test/fuzztest/security_component/common/
H A Dfuzz_common.h41 if (data_ == nullptr || objectSize > dataLenth_ - basePos) { in GetData()
42 basePos = 0; // reset read point in GetData()
45 errno_t ret = memcpy_s(&object, objectSize, data_ + basePos, objectSize); in GetData()
49 basePos += objectSize; in GetData()
61 size_t basePos = 0; variable
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/common/src/
H A Doh_audio_buffer.cpp539 uint64_t basePos = basicBufferInfo_->basePosInFrame.load(); in SetCurWriteFrame() local
606 uint64_t basePos = basicBufferInfo_->basePosInFrame.load(); in GetBufferByFrame() local
608 CHECK_AND_RETURN_RET_LOG(posInFrame >= basePos && posInFrame - basePos < maxDelta, in GetBufferByFrame()
611 uint32_t deltaToBase = posInFrame - basePos; in GetBufferByFrame()
641 uint64_t basePos = basicBufferInfo_->basePosInFrame.load(); in GetWriteBuffer() local
644 …CHECK_AND_RETURN_RET_LOG(writePosInFrame >= basePos && writePosInFrame - basePos < maxWriteDelta && in GetWriteBuffer()
651 uint64_t basePos = basicBufferInfo_->basePosInFrame.load(); in GetReadbuffer() local
652 …CHECK_AND_RETURN_RET_LOG(readPosInFrame >= basePos && readPosInFrame - basePos < totalSizeInFrame_, in GetReadbuffer()
659 uint64_t basePos = basicBufferInfo_->basePosInFrame.load(); in GetSpanInfo() local
660 uint64_t maxPos = basePos + totalSizeInFrame_ + totalSizeInFrame_; in GetSpanInfo()
[all …]