Lines Matching refs:offset

47 void CParameterBlackboard::writeInteger(const void *pvSrcData, size_t size, size_t offset)  in writeInteger()  argument
49 assertValidAccess(offset, size); in writeInteger()
53 auto dest_first = atOffset(offset); in writeInteger()
58 void CParameterBlackboard::readInteger(void *pvDstData, size_t size, size_t offset) const in readInteger()
60 assertValidAccess(offset, size); in readInteger()
62 auto first = atOffset(offset); in readInteger()
69 void CParameterBlackboard::writeString(const std::string &input, size_t offset) in writeString() argument
71 assertValidAccess(offset, input.size() + 1); in writeString()
73 auto dest_last = std::copy(begin(input), end(input), atOffset(offset)); in writeString()
77 void CParameterBlackboard::readString(std::string &output, size_t offset) const in readString()
81 assertValidAccess(offset, sizeof('\0')); in readString()
84 const uint8_t *first = &mBlackboard[offset]; in readString()
88 void CParameterBlackboard::writeBuffer(const void *pvSrcData, size_t size, size_t offset) in writeBuffer() argument
90 writeInteger(pvSrcData, size, offset); in writeBuffer()
92 void CParameterBlackboard::readBuffer(void *pvDstData, size_t size, size_t offset) const in readBuffer()
94 readInteger(pvDstData, size, offset); in readBuffer()
98 void CParameterBlackboard::writeBytes(const std::vector<uint8_t> &bytes, size_t offset) in writeBytes() argument
100 assertValidAccess(offset, bytes.size()); in writeBytes()
102 std::copy(begin(bytes), end(bytes), atOffset(offset)); in writeBytes()
105 void CParameterBlackboard::readBytes(std::vector<uint8_t> &bytes, size_t offset) const in readBytes()
107 assertValidAccess(offset, bytes.size()); in readBytes()
109 std::copy_n(atOffset(offset), bytes.size(), begin(bytes)); in readBytes()
113 uint8_t *CParameterBlackboard::getLocation(size_t offset) in getLocation() argument
115 assertValidAccess(offset, 1); in getLocation()
116 return &mBlackboard[offset]; in getLocation()
120 void CParameterBlackboard::restoreFrom(const CParameterBlackboard *pFromBlackboard, size_t offset) in restoreFrom() argument
123 assertValidAccess(offset, fromBB.size()); in restoreFrom()
124 std::copy(begin(fromBB), end(fromBB), atOffset(offset)); in restoreFrom()
127 void CParameterBlackboard::saveTo(CParameterBlackboard *pToBlackboard, size_t offset) const in saveTo()
130 assertValidAccess(offset, toBB.size()); in saveTo()
131 std::copy_n(atOffset(offset), toBB.size(), begin(toBB)); in saveTo()
134 void CParameterBlackboard::assertValidAccess(size_t offset, size_t size) const in assertValidAccess() argument
136 ALWAYS_ASSERT(offset + size <= getSize(), in assertValidAccess()
137 "Invalid data size access: offset=" << offset << " size=" << size in assertValidAccess()