Example #1
0
 public static void WriteTypeAndLength(Stream output, TdfType type, uint length)
 {
     //length is 15 or more
     if (length >= 0xF)
     {
         output.WriteByte((byte)(((uint)type << 4) | 0xF));
         WriteLength(output, length);
     }
     else
     {
         output.WriteByte((byte)(((uint)type << 4) | length));
     }
 }
Example #2
0
 public static void WriteType(Stream output, TdfType type)
 {
     output.WriteByte((byte)(((uint)type << 4) | 0xF));
 }