public override void WriteData( int offset, int length, IntPtr src, bool discardWholeBuffer )
{
// lock the buffer real quick
IntPtr dest = this.Lock( offset, length,
discardWholeBuffer ? BufferLocking.Discard : BufferLocking.Normal );
// copy that data in there
Memory.Copy( src, dest, length );
// unlock the buffer
this.Unlock();
}