Lines Matching defs:position
57 size_t Memory::Write(const uint8_t* in, size_t writeSize, size_t position)
60 if (position == INVALID_POSITION) {
63 start = std::min(position, capacity);
73 size_t Memory::Read(uint8_t* out, size_t readSize, size_t position)
77 if (position != INVALID_POSITION) {
78 start = std::min(position, size);
88 const uint8_t* Memory::GetReadOnlyData(size_t position)
90 if (position > capacity) {
93 return GetRealAddr() + position;
96 uint8_t* Memory::GetWritableAddr(size_t estimatedWriteSize, size_t position)
98 if (position + estimatedWriteSize > capacity) {
101 uint8_t* ptr = GetRealAddr() + position;
102 size = (estimatedWriteSize + position);
106 void Memory::UpdateDataSize(size_t realWriteSize, size_t position)
108 if (position + realWriteSize > capacity) {
111 size = (realWriteSize + position);