mirror of
https://github.com/icedland/iced.git
synced 2025-02-26 20:45:47 +00:00
Add an extension method
This commit is contained in:
parent
fd9efb87ec
commit
54565c2945
@ -88,6 +88,20 @@ namespace Iced.Intel {
|
||||
MemorySizeNever = (uint)MemorySizeOptions.Never << (int)MemorySizeShift,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods
|
||||
/// </summary>
|
||||
public static class FormatterOperandOptionsExtensions {
|
||||
/// <summary>
|
||||
/// Returns new options with a new <see cref="MemorySizeOptions"/> value
|
||||
/// </summary>
|
||||
/// <param name="self">Operand options</param>
|
||||
/// <param name="options">Memory size options</param>
|
||||
/// <returns></returns>
|
||||
public static FormatterOperandOptions WithMemorySize(this FormatterOperandOptions self, MemorySizeOptions options) =>
|
||||
(self & ~FormatterOperandOptions.MemorySizeMask) | (FormatterOperandOptions)((uint)options << (int)FormatterOperandOptions.MemorySizeShift);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets initialized with the default options and can be overridden by a <see cref="IFormatterOptionsProvider"/>
|
||||
/// </summary>
|
||||
|
@ -22,7 +22,7 @@ using System;
|
||||
|
||||
namespace Iced.Intel {
|
||||
/// <summary>
|
||||
/// Used by a <see cref="Formatter"/> to resolve symbols. It can also override number formatting options
|
||||
/// Used by a <see cref="Formatter"/> to resolve symbols
|
||||
/// </summary>
|
||||
public interface ISymbolResolver {
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user