PipeEndState.pipeCompletionCallback

void pipeCompletionCallback(void * context, OVERLAPPED * overlappedPtr, size_t bytesTransferred, DWORD error) static @trusted nothrow

Static IOCP completion callback.

Called by the IOCP backend when an overlapped operation completes. Dispatches to the appropriate read or write completion handler based on which overlapped structure completed.

Parameters

contextPointer to the PipeState.
overlappedPtrOVERLAPPED that completed.
bytesTransferredBytes transferred by the operation.
errorWin32 error code (0 on success).