/** * This method is implemented here to be in close proximity to the method that parses a file name to * retrieve these bits of information back out * @param builder * @param destinationId * @param requestMsgId * @param packetNumber * @param renderAsVersion * @param errorPacket */ internal static void SerializeResponsePacketFileName(StringBuilder builder, String destinationId, String requestMsgId, int packetNumber, SifVersion renderAsVersion, bool errorPacket) { // FORMAT: "{requestSourceId}.{requestMsgId}.{packet#}.{ver}[.$].pkt" builder.Append(serializeToken(destinationId)); builder.Append('.'); builder.Append(requestMsgId); builder.Append('.'); builder.Append(packetNumber); builder.Append('.'); builder.Append(renderAsVersion.ToSymbol()); if (errorPacket) { builder.Append(".$"); } builder.Append(".pkt"); }