void BSPLib::Classic::QSize( size_t *packets, size_t *accumulatedSize ) // (1) Classic void bsp_qsize( size_t *packets, size_t *accumulatedSize ) // (2) Legacy void BSPLib::QSize( size_t &packetsRef ) // (3) Reference void BSPLib::QSize( size_t &packetsRef, size_t &accumulatedSizeRef ) // (4) References
Get both the amount of messages, and the total size of the messages in bytes.
- Classic BSP function, this is the interface one should prefer to use over the old BSP interface.
- Legacy BSP function, this interface is included for backwards compatibility with other BSP libraries.
- Gets the amount of messages in the queue using a reference, as we do not allow
- Gets both the amount of messages in the queue and the total size of the messages in bytes, using references.
packetsPointer to the location where the total number of packets is to be written.
accumulatedSizePointer to the location where the total size of the messages is to be written.
packetsRefReference to write the number of packets to.
accumulatedSizeRefReference to write the total size of the messages to.
BSPLib::Begin()has been called.
- packets != nullptr.
accumulatedSize != nullptr:
- accumulatedSize will be the accumulated size of the packets in bytes.
- The calculation of the accumulated size will be skipped.