public Interest(Stream stream) : base(PACKET_INTEREST, stream) { InterestType = (byte)stream.ReadByte(); Name = ContentName.ReadFrom(stream); }
public Data(Stream stream) : base(PACKET_DATA, stream) { Name = ContentName.ReadFrom(stream); Content = new RandomContent(stream); }