public void WriteFrom(Sip.Message.Header header, ByteArrayPart tag) { if (header.Name.IsValid == true) { Write(header.Name, C.HCOLON, header.Value); if (tag.IsValid == true) { Write(C.SEMI, C.tag, C.EQUAL, tag); } Write(C.CRLF); } }
public void WriteTo(Sip.Message.Header header, ByteArrayPart epid1) { if (header.Name.IsValid == true) { Write(header.Name, C.HCOLON, header.Value); if (epid1.IsValid == true) { Write(C.SEMI, C.epid, C.EQUAL); toEpid = new Range(end, epid1.Length); Write(epid1); } Write(C.CRLF); } }