1
0
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:
Christopher Pascoe 2015-12-09 22:51:57 -08:00
parent 06b1c3f819
commit afbc049cc9

View File

@ -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;
};