Example #1
0
 private static void EncodeAdditionalInfoInt(int data, byte[] result, ref int offset)
 {
     result[offset] = MimeAppleTranscoder.colonBytes[0];
     offset++;
     for (int i = 0; i < 4; i++)
     {
         byte b = (byte)(data >> 8 * (3 - i) & 255);
         if (b == MimeAppleTranscoder.semiColonBytes[0] || b == MimeAppleTranscoder.slashBytes[0] || b == MimeAppleTranscoder.colonBytes[0] || b == 127 || b < 32 || b >= 252)
         {
             MimeAppleTranscoder.EncodeAdditionalInfoByte(b, result, ref offset);
         }
         else
         {
             result[offset] = b;
             offset++;
         }
     }
 }