mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +03:00
Make the circular buffer's _size and _bufend members immutable.
This commit is contained in:
parent
06b1c3f819
commit
afbc049cc9
@ -113,9 +113,9 @@ class cbuf {
|
|||||||
return (ptr == _bufend) ? _buf : ptr;
|
return (ptr == _bufend) ? _buf : ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t _size;
|
const size_t _size;
|
||||||
char* _buf;
|
char* _buf;
|
||||||
char* _bufend;
|
const char* const _bufend;
|
||||||
char* _begin;
|
char* _begin;
|
||||||
char* _end;
|
char* _end;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user