// Create a packet containing some new data.Packetp=MakePacket<MyDataClass>("constructor_argument");// Make a new packet with the same data and a different timestamp.Packetp2=p.At(Timestamp::PostStream());
または
// Create some new data.autodata=absl::make_unique<MyDataClass>("constructor_argument");// Create a packet to own the data.Packetp=Adopt(data.release()).At(Timestamp::PostStream());