src/taesooLib/BaseLib/utility/FileEx.cpp
BOOL CFileEx::SetOvSegReadWriteSize( DWORD dwSegmentSize  )
{
	BOOL bSet = FALSE;
	if( dwSegmentSize <= 0 ) {
		ThrowErr( FILEEX_ERR_PARAM_OUTOFRANGE, 0 );
	}
	
	if( ! m_bActiveOvIO ) {
		bSet		= TRUE;
		m_dwSegSize = dwSegmentSize;
	}else{
		ThrowErr( FILEEX_ERR_OTHERIO_CURRENTLY_RUNNG, 0 );
	}

	return bSet;
}
///////////////////////////////////////////////////////////////////////////////
//	Desc:
//		Set the size of the segments of data that are read or written to/from
//		the file during overlapped reads and writes.  This is how much data
//		is transferred in between each call to the user defined callback.
//		This can not be changed when overlapped I/O operations are in progress.
///////////////////////////////////////////////////////////////////////////////
Set the size of the segments of data that are read or written to/from
the file during overlapped reads and writes.  This is how much data
is transferred in between each call to the user defined callback.
This can not be changed when overlapped I/O operations are in progress.
Set the size of the segments of data that are read or written to / from the file during overlapped reads and writes . This is how much data is transferred in between each call to the user defined callback . This can not be changed when overlapped I / O operations are in progress .
BOOL CFileEx::SetOvSegReadWriteSize( DWORD dwSegmentSize  )
{
	BOOL bSet = FALSE;
	if( dwSegmentSize <= 0 ) {
		ThrowErr( FILEEX_ERR_PARAM_OUTOFRANGE, 0 );
	}
	if( ! m_bActiveOvIO ) {
		bSet		= TRUE;
		m_dwSegSize = dwSegmentSize;
	}else{
		ThrowErr( FILEEX_ERR_OTHERIO_CURRENTLY_RUNNG, 0 );
	}
	return bSet;
}
BOOL CFileEx :: SetOvSegReadWriteSize ( DWORD dwSegmentSize ) { BOOL bSet = FALSE ; if ( dwSegmentSize <= 0 ) { ThrowErr ( FILEEX_ERR_PARAM_OUTOFRANGE , 0 ) ; } if ( ! m_bActiveOvIO ) { bSet = TRUE ; m_dwSegSize = dwSegmentSize ; } else { ThrowErr ( FILEEX_ERR_OTHERIO_CURRENTLY_RUNNG , 0 ) ; } return bSet ; }
Desc:
Set the size of the segments of data that are read or written to/from
the file during overlapped reads and writes.
Desc : Set the size of the segments of data that are read or written to / from the file during overlapped reads and writes .