Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: utils/MTSCircularBuffer.cpp
- Revision:
- 67:1003b410f781
- Parent:
- 65:ed113472b2c1
- Child:
- 84:77c5ab16534d
--- a/utils/MTSCircularBuffer.cpp Mon Dec 23 19:07:32 2013 +0000 +++ b/utils/MTSCircularBuffer.cpp Mon Dec 23 19:55:31 2013 +0000 @@ -15,7 +15,7 @@ delete[] buffer; } -int MTSCircularBuffer::getSize() +int MTSCircularBuffer::capacity() { return bufferSize; } @@ -76,12 +76,12 @@ return 1; } -int MTSCircularBuffer::capacity() +int MTSCircularBuffer::remaining() { return bufferSize - bytes; } -int MTSCircularBuffer::available() +int MTSCircularBuffer::size() { return bytes; }