Source Code (Use browser search to find items of interest.)

Class Index

khexedit'CHexAction (./kdeutils/khexedit/hexbuffer.h:964)

class CHexAction 
{
  public:
    enum HexAction 
    { 
      replace
    };
    
  public:
    CHexAction( HexAction action, uint offset );
    ~CHexAction( void );
    void setData( uint size, char *data, uint dataSize );

  public:
    HexAction mAction;
    uint mOffset;
    uint mSize;
    char *mData;
    uint mDataSize;
    CHexAction *mNext;
};


khexedit'CHexAction::CHexAction() (./kdeutils/khexedit/hexbuffer.cc:41)

CHexAction::CHexAction( HexAction action, uint offset )
{
  mAction   = action;
  mOffset   = offset;
  mSize     = 0;
  mData     = 0;
  mDataSize = 0;
  mNext     = 0;
}


khexedit'CHexAction::~CHexAction() (./kdeutils/khexedit/hexbuffer.cc:51)

CHexAction::~CHexAction( void )
{
  delete [] mData;
}
 

khexedit'CHexAction::setData() (./kdeutils/khexedit/hexbuffer.cc:56)

void CHexAction::setData( uint size, char *data, uint dataSize )
{

  if( data != 0 && dataSize > 0 ) 
  {
    mData = new char[ dataSize ];
    if( mData == 0 )
    {
      return;
    }
    memcpy( mData, data, dataSize );
    mDataSize = dataSize;
  } 
  else 
  {
    mDataSize = 0;
    mData = 0;
  }
  mSize = size;
}