Example #1
0
 private static int VerifyMaxEncodedValueSize(int actual, int max, ValueFormats format)
 {
     if (actual > max)
     {
         throw new ArgumentException(string.Format("Encoded value size ({0}) for type 0x{1:x2} is greater then {2}", actual, (int)format, max));
     }
     return(actual);
 }
Example #2
0
        public static String AsText(this ValueFormats ValueFormat)
        {
            switch (ValueFormat)
            {
            case ValueFormats.SignedData:
                return("SignedData");


            default:
                return("Raw");
            }
        }