Search Results for

    Show / Hide Table of Contents

    Struct Alignment

    Specifies the alignment of the data referred to by a load or store operation.

    Implements
    IEquatable<Alignment>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Flame.Compiler.Instructions
    Assembly: Flame.Compiler.dll
    Syntax
    public struct Alignment : IEquatable<Alignment>

    Constructors

    | Edit this page View Source

    Alignment(uint)

    Creates a particular alignment.

    Declaration
    public Alignment(uint value)
    Parameters
    Type Name Description
    uint value

    The alignment.

    Fields

    | Edit this page View Source

    NaturallyAligned

    An alignment that represents natural alignment.

    Declaration
    public static readonly Alignment NaturallyAligned
    Field Value
    Type Description
    Alignment
    | Edit this page View Source

    Unaligned

    An alignment that represents byte-alignment.

    Declaration
    public static readonly Alignment Unaligned
    Field Value
    Type Description
    Alignment

    Properties

    | Edit this page View Source

    IsNaturallyAligned

    Tells if this alignment represents a natural alignment, i.e., a pointer whose alignment matches the natural alignment of its element type.

    Declaration
    public bool IsNaturallyAligned { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsUnaligned

    Tells if this alignment represents an unaligned pointer, i.e., a pointer that is byte-aligned.

    Declaration
    public bool IsUnaligned { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Value

    Gets the alignment of a pointer: a factor by which the pointer is divisible.

    Declaration
    public readonly uint Value { get; }
    Property Value
    Type Description
    uint

    A pointer's alignment.

    Methods

    | Edit this page View Source

    Equals(Alignment)

    Tests if this alignment is identical to another alignment.

    Declaration
    public bool Equals(Alignment other)
    Parameters
    Type Name Description
    Alignment other

    An alignment to compare with this one.

    Returns
    Type Description
    bool

    true if the alignments are identical; otherwise, false.

    | Edit this page View Source

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    ValueType.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    ValueType.GetHashCode()
    | Edit this page View Source

    ToString()

    Returns the fully qualified type name of this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The fully qualified type name.

    Overrides
    ValueType.ToString()

    Operators

    | Edit this page View Source

    operator ==(Alignment, Alignment)

    Tests if two alignments are identical.

    Declaration
    public static bool operator ==(Alignment first, Alignment second)
    Parameters
    Type Name Description
    Alignment first

    The first alignment.

    Alignment second

    The second alignment.

    Returns
    Type Description
    bool

    true if the alignments are identical; otherwise, false.

    | Edit this page View Source

    operator !=(Alignment, Alignment)

    Tests if two alignments are not identical.

    Declaration
    public static bool operator !=(Alignment first, Alignment second)
    Parameters
    Type Name Description
    Alignment first

    The first alignment.

    Alignment second

    The second alignment.

    Returns
    Type Description
    bool

    false if the alignments are identical; otherwise, true.

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX