예제 #1
0
 /// <summary> Reads the current binary argument as a boolean value. </summary>
 /// <returns> The boolean value. </returns>
 public bool ReadBinBoolArg()
 {
     if (Next())
     {
         var current = BinaryConverter.ToByte(CmdArgs[_parameter]);
         if (current != null)
         {
             _dumped = true;
             return(current != 0);
         }
     }
     return(false);
 }
예제 #2
0
 /// <summary> Reads the current binary argument as a byte value. </summary>
 /// <returns> The boolean value. </returns>
 public byte ReadBinByteArg()
 {
     if (Next())
     {
         var current = BinaryConverter.ToByte(CmdArgs[_parameter]);
         if (current != null)
         {
             _dumped = true;
             return((byte)current);
         }
     }
     return(0);
 }