Get the total length of all queued buffers
| 611 | |
| 612 | // Get the total length of all queued buffers |
| 613 | size_t OutputStack::DataLength() const volatile noexcept |
| 614 | { |
| 615 | size_t totalLength = 0; |
| 616 | |
| 617 | TaskCriticalSectionLocker lock; |
| 618 | for (size_t i = 0; i < count; i++) |
| 619 | { |
| 620 | if (items[i] != nullptr) |
| 621 | { |
| 622 | totalLength += items[i]->Length(); |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | return totalLength; |
| 627 | } |
| 628 | |
| 629 | // Append another OutputStack to this instance. If no more space is available, |
| 630 | // all OutputBuffers that can't be added are automatically released |
no test coverage detected