예제 #1
0
 /// <summary>
 /// Encodes instructions. Returns null or an error message
 /// </summary>
 /// <param name="bitness">16, 32 or 64</param>
 /// <param name="block">All instructions</param>
 /// <param name="errorMessage">Updated with an error message if the method failed</param>
 /// <param name="options">Encoder options</param>
 /// <returns></returns>
 public static bool TryEncode(int bitness, InstructionBlock block, out string errorMessage, BlockEncoderOptions options = BlockEncoderOptions.None) =>
 TryEncode(bitness, new[] { block }, out errorMessage, options);
예제 #2
0
 /// <summary>
 /// Encodes instructions. Returns null or an error message
 /// </summary>
 /// <param name="bitness">16, 32 or 64</param>
 /// <param name="block">All instructions</param>
 /// <param name="options">Encoder options</param>
 /// <returns></returns>
 public static string Encode(int bitness, InstructionBlock block, BlockEncoderOptions options = BlockEncoderOptions.None) =>
 Encode(bitness, new[] { block }, options);