Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IPacket::copyData ( p6IPacket pSourcePacket,
P6UINT32  nSourceOffset,
P6UINT32  cSourceLength 
)
pure virtual

This method is used to copy bytes into the current packet, starting at the current offset from the specfied packet.

The current position in the this packet will be advanced by cLength bytes on success. The current position of the source packet is not altered.

Parameters
pSourcePacketA pointer to the p6IPacket interface to copy from
nSourceOffsetThe offset in the source packet to copy from
cSourceLengthThe number of bytes to copy from the source packet
Returns
SuccessP6R::eOkThe copy succeeded.
FailureP6R::eInvalidArgpSourcePacket was NULL or cLength is zero.