예제 #1
0
 public RtpToolEntry(DateTime timeBase, System.Net.IPEndPoint source, Common.IPacket packet, int?offset = null, long?fileOffset = null)
     : this(timeBase, source, FileFormat.Binary, CreatePacketHeader(packet, offset ?? 0).Concat(packet.Prepare()).ToArray(), offset, fileOffset)
 {
     BlobLength = (int)(sizeOf_RD_packet_T + packet.Length);
 }
예제 #2
0
        //http://net7mma.codeplex.com/workitem/17176
        //Text entries will need another constructor

        public RtpToolEntry(DateTime timeBase, System.Net.IPEndPoint source, Common.IPacket packet, int?offset = null, long?fileOffset = null, FileFormat format = FileFormat.Binary, bool shouldDispose = true)
            : this(timeBase, source, format, format >= FileFormat.Binary ? CreatePacketHeader(packet, offset ?? 0).Concat(packet.Prepare()).ToArray() : null, offset, fileOffset, shouldDispose)
        {
            BlobLength = format >= FileFormat.Binary ? (int)(sizeOf_RD_packet_T + packet.Length) : 0;
        }