home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CByteArray

CObject
   |
   +--CByteArray

   in AFXCOLL.H

class CByteArray
extends CObject


Inner Classes, Typedefs, and Enums
typedef CByteArray::BASE_ARG_TYPE
          
typedef CByteArray::BASE_TYPE
          
 
Field Summary
protected int m_nGrowBy
          
protected int m_nMaxSize
          
protected int m_nSize
          
protected BYTE* m_pData
          
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
CByteArray()
          
~CByteArray()
          
 
Method Summary
 int Add( BYTE newElement )
          
 int Append( const CByteArray& src )
          
 void Copy( const CByteArray& src )
          
 BYTE& ElementAt( int nIndex )
          
 void FreeExtra()
          
 BYTE GetAt( int nIndex ) const
          
 const BYTE* GetData() const
          
 int GetSize() const
          
 int GetUpperBound() const
          
 void InsertAt( int nStartIndex, CByteArray* pNewArray )
          
 void InsertAt( int nIndex, BYTE newElement, int nCount = 1 )
          
 BYTE operator[]( int nIndex ) const
          
 void RemoveAll()
          
 void RemoveAt( int nIndex, int nCount = 1 )
          
 void Serialize( CArchive& )
          
 void SetAt( int nIndex, BYTE newElement )
          
 void SetAtGrow( int nIndex, BYTE newElement )
          
 void SetSize( int nNewSize, int nGrowBy =-1 )
          
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Field Detail

m_nGrowBy

protected int m_nGrowBy;

m_nMaxSize

protected int m_nMaxSize;

m_nSize

protected int m_nSize;

m_pData

protected BYTE* m_pData;


Constructor Detail

CByteArray

public CByteArray();

~CByteArray

public ~CByteArray();


Method Detail

Add

public int Add( BYTE newElement );

Append

public int Append( const CByteArray& src );

Copy

public void Copy( const CByteArray& src );

ElementAt

public BYTE& ElementAt( int nIndex );

FreeExtra

public void FreeExtra();

GetAt

public BYTE GetAt( int nIndex ) const;

GetData

public const BYTE* GetData() const;

GetSize

public int GetSize() const;

GetUpperBound

public int GetUpperBound() const;

InsertAt

public void InsertAt( int nStartIndex, CByteArray* pNewArray );

InsertAt

public void InsertAt( int nIndex, BYTE newElement, int nCount = 1 );

operator[]

public BYTE operator[]( int nIndex ) const;

RemoveAll

public void RemoveAll();

RemoveAt

public void RemoveAt( int nIndex, int nCount = 1 );

Serialize

public void Serialize( CArchive& );

SetAt

public void SetAt( int nIndex, BYTE newElement );

SetAtGrow

public void SetAtGrow( int nIndex, BYTE newElement );

SetSize

public void SetSize( int nNewSize, int nGrowBy =-1 );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD