#include <asyncio.h>
Public Member Functions | |
| HRESULT | Request (CAsyncIo *pIo, CAsyncStream *pStream, LONGLONG llPos, LONG lLength, BOOL bAligned, BYTE *pBuffer, LPVOID pContext, DWORD dwUser) |
| HRESULT | Complete () |
| HRESULT | Cancel () |
| LPVOID | GetContext () |
| DWORD | GetUser () |
| HRESULT | GetHResult () |
| LONG | GetActualLength () |
| LONGLONG | GetStart () |
Private Attributes | |
| CAsyncIo * | m_pIo |
| CAsyncStream * | m_pStream |
| LONGLONG | m_llPos |
| BOOL | m_bAligned |
| LONG | m_lLength |
| BYTE * | m_pBuffer |
| LPVOID | m_pContext |
| DWORD | m_dwUser |
| HRESULT | m_hr |
Definition at line 27 of file asyncio.h.
| HRESULT CAsyncRequest::Request | ( | CAsyncIo * | pIo, | |
| CAsyncStream * | pStream, | |||
| LONGLONG | llPos, | |||
| LONG | lLength, | |||
| BOOL | bAligned, | |||
| BYTE * | pBuffer, | |||
| LPVOID | pContext, | |||
| DWORD | dwUser | |||
| ) |
Definition at line 11 of file asyncio.cpp.
References m_bAligned, m_dwUser, m_hr, m_lLength, m_llPos, m_pBuffer, m_pContext, m_pIo, m_pStream, and S_OK.
Referenced by CAsyncIo::Request(), CAsyncIo::SyncRead(), and CAsyncIo::SyncReadAligned().
| HRESULT CAsyncRequest::Complete | ( | ) |
Definition at line 35 of file asyncio.cpp.
References FAILED, CAsyncStream::Lock(), LONG, m_bAligned, m_hr, m_lLength, m_llPos, m_pBuffer, m_pContext, m_pStream, CAsyncStream::Read(), S_FALSE, S_OK, CAsyncStream::SetPointer(), TRUE, and CAsyncStream::Unlock().
Referenced by CAsyncIo::ProcessRequests(), CAsyncIo::SyncRead(), and CAsyncIo::SyncReadAligned().
| HRESULT CAsyncRequest::Cancel | ( | ) | [inline] |
| LPVOID CAsyncRequest::GetContext | ( | ) | [inline] |
Definition at line 63 of file asyncio.h.
References m_pContext.
Referenced by CAsyncIo::WaitForNext().
| DWORD CAsyncRequest::GetUser | ( | ) | [inline] |
Definition at line 68 of file asyncio.h.
References m_dwUser.
Referenced by CAsyncIo::WaitForNext().
| HRESULT CAsyncRequest::GetHResult | ( | ) | [inline] |
| LONG CAsyncRequest::GetActualLength | ( | ) | [inline] |
Definition at line 78 of file asyncio.h.
References m_lLength.
Referenced by CAsyncIo::SyncReadAligned(), and CAsyncIo::WaitForNext().
| LONGLONG CAsyncRequest::GetStart | ( | ) | [inline] |
CAsyncIo* CAsyncRequest::m_pIo [private] |
CAsyncStream* CAsyncRequest::m_pStream [private] |
LONGLONG CAsyncRequest::m_llPos [private] |
BOOL CAsyncRequest::m_bAligned [private] |
LONG CAsyncRequest::m_lLength [private] |
Definition at line 33 of file asyncio.h.
Referenced by Complete(), GetActualLength(), and Request().
BYTE* CAsyncRequest::m_pBuffer [private] |
LPVOID CAsyncRequest::m_pContext [private] |
DWORD CAsyncRequest::m_dwUser [private] |
HRESULT CAsyncRequest::m_hr [private] |
1.5.6