* Gets the size of the data that are actually written to the buffer. * This cannot be greater than the capacity of the buffer. * * @return The size of the written data to the buffer. */
| 154 | * @return The size of the written data to the buffer. |
| 155 | */ |
| 156 | uint32_t DynamicBuffer::getRealDataSize() const |
| 157 | { |
| 158 | return static_cast<uint32_t>(_data.size()); |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Erases the bytes from the buffer. Also reduces the capacity of the buffer. |