Lines Matching refs:position
56 size_t Memory::Write(const uint8_t* in, size_t writeSize, size_t position)
59 if (position == MEM_INVALID_POSITION) {
62 start = std::min(position, capacity);
72 size_t Memory::Read(uint8_t* out, size_t readSize, size_t position)
76 if (position != MEM_INVALID_POSITION) {
77 start = std::min(position, size);
87 const uint8_t* Memory::GetReadOnlyData(size_t position)
89 if (position > capacity) {
92 return GetRealAddr() + position;
95 uint8_t* Memory::GetWritableAddr(size_t estimatedWriteSize, size_t position)
97 if (position + estimatedWriteSize > capacity) {
100 uint8_t* ptr = GetRealAddr() + position;
101 size = (estimatedWriteSize + position);
105 void Memory::UpdateDataSize(size_t realWriteSize, size_t position)
107 if (position + realWriteSize > capacity) {
110 size = (realWriteSize + position);