adding GetPacketBuffer() to cPacket class