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