新增了PQDIF补招线程,导入了新的lib库
This commit is contained in:
59
LFtid1056/pqdif/include/pqbytearray.h
Normal file
59
LFtid1056/pqdif/include/pqbytearray.h
Normal file
@@ -0,0 +1,59 @@
|
||||
// File name: $Workfile: pqbytearray.h $
|
||||
// Last modified: $Modtime: 9/20/00 4:19p $
|
||||
// Last modified by: $Author: Bill $
|
||||
//
|
||||
// VCS archive path: $Archive: /Hank/DMM/FirmWare/Level3/ObDatMgr/pqbytearray.h $
|
||||
// VCS revision: $Revision: 4 $
|
||||
|
||||
class CPQByteArray
|
||||
{
|
||||
public:
|
||||
CPQByteArray();
|
||||
~CPQByteArray();
|
||||
|
||||
public:
|
||||
inline int GetSize( void ) const
|
||||
{
|
||||
return m_size;
|
||||
}
|
||||
bool SetSize( int NewSize, int GrowBy = -1 );
|
||||
|
||||
inline BYTE GetAt( int idx ) const
|
||||
{
|
||||
//ASSERT( m_data != NULL && idx >= 0 && idx < m_size );
|
||||
return m_data[ idx ];
|
||||
}
|
||||
inline void SetAt( int idx, BYTE value )
|
||||
{
|
||||
//ASSERT( m_data != NULL && idx >= 0 && idx < m_size );
|
||||
m_data[ idx ] = value;
|
||||
}
|
||||
BYTE& ElementAt( int idx ) const
|
||||
{
|
||||
//ASSERT( m_data != NULL && idx >= 0 && idx < m_size );
|
||||
return m_data[ idx ];
|
||||
}
|
||||
|
||||
inline const BYTE * GetData( void ) const { return m_data; }
|
||||
inline BYTE * GetData( void ) { return m_data; }
|
||||
|
||||
int Add( BYTE value );
|
||||
int Append( BYTE * values, int count );
|
||||
|
||||
BYTE operator[] ( int idx ) const
|
||||
{
|
||||
//ASSERT( m_data != NULL && idx >= 0 && idx < m_size );
|
||||
return m_data[ idx ];
|
||||
}
|
||||
BYTE& operator[] ( int idx )
|
||||
{
|
||||
//ASSERT( m_data != NULL && idx >= 0 && idx < m_size );
|
||||
return m_data[ idx ];
|
||||
}
|
||||
|
||||
protected:
|
||||
BYTE * m_data;
|
||||
int m_size;
|
||||
int m_max;
|
||||
int m_growBy;
|
||||
};
|
||||
Reference in New Issue
Block a user