DtlsPeerState.dequeueAppData
size_t dequeueAppData(ubyte[] buffer) @safeDequeue decrypted application data into the provided buffer.
Copies as much data as possible from the front of the queue into the buffer. Partial dequeues are supported: if a queue entry is larger than the remaining buffer space, only the fitting portion is copied and the remainder stays at the front.
Parameters
buffer | Destination buffer for decrypted data. |
Returns
Number of bytes copied into buffer.