# C1.Util.DX.PointerSize

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_PointerSize" data-uid="C1.Util.DX.PointerSize" class="text-break">PointerSize Struct
</h1>
  <div class="markdown level0 summary"><p>The maximum number of bytes to which a pointer can point. Use for a count that must span the full range of a pointer.
Equivalent to Windows type SIZE_T.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.html">C1.Util.DX</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.4.8.dll</h6>
  <h5 id="C1_Util_DX_PointerSize_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct PointerSize</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure PointerSize</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_PointerSize__ctor_System_Int32_" data-uid="C1.Util.DX.PointerSize.#ctor(System.Int32)">
          <a class="xref" href="C1.Util.DX.PointerSize.-ctor.html#C1_Util_DX_PointerSize__ctor_System_Int32_">PointerSize(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Default constructor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize__ctor_System_Int64_" data-uid="C1.Util.DX.PointerSize.#ctor(System.Int64)">
          <a class="xref" href="C1.Util.DX.PointerSize.-ctor.html#C1_Util_DX_PointerSize__ctor_System_Int64_">PointerSize(long)</a>
        </td>
        <td class="markdown level1 summary"><p>Default constructor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize__ctor_System_IntPtr_" data-uid="C1.Util.DX.PointerSize.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.PointerSize.-ctor.html#C1_Util_DX_PointerSize__ctor_System_IntPtr_">PointerSize(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a> struct.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_PointerSize_Zero" data-uid="C1.Util.DX.PointerSize.Zero">
          <a class="xref" href="C1.Util.DX.PointerSize.Zero.html">Zero</a>
        </td>
        <td class="markdown level1 summary"><p>An empty pointer size initialized to zero.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_PointerSize_Equals_C1_Util_DX_PointerSize_" data-uid="C1.Util.DX.PointerSize.Equals(C1.Util.DX.PointerSize)">
          <a class="xref" href="C1.Util.DX.PointerSize.Equals.html#C1_Util_DX_PointerSize_Equals_C1_Util_DX_PointerSize_">Equals(PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_Equals_System_Object_" data-uid="C1.Util.DX.PointerSize.Equals(System.Object)">
          <a class="xref" href="C1.Util.DX.PointerSize.Equals.html#C1_Util_DX_PointerSize_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_GetHashCode" data-uid="C1.Util.DX.PointerSize.GetHashCode">
          <a class="xref" href="C1.Util.DX.PointerSize.GetHashCode.html#C1_Util_DX_PointerSize_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_ToString" data-uid="C1.Util.DX.PointerSize.ToString">
          <a class="xref" href="C1.Util.DX.PointerSize.ToString.html#C1_Util_DX_PointerSize_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_ToString_System_String_" data-uid="C1.Util.DX.PointerSize.ToString(System.String)">
          <a class="xref" href="C1.Util.DX.PointerSize.ToString.html#C1_Util_DX_PointerSize_ToString_System_String_">ToString(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Addition_C1_Util_DX_PointerSize_C1_Util_DX_PointerSize_" data-uid="C1.Util.DX.PointerSize.op_Addition(C1.Util.DX.PointerSize,C1.Util.DX.PointerSize)">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Addition.html#C1_Util_DX_PointerSize_op_Addition_C1_Util_DX_PointerSize_C1_Util_DX_PointerSize_">operator +(PointerSize, PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds two sizes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Division_C1_Util_DX_PointerSize_System_Int32_" data-uid="C1.Util.DX.PointerSize.op_Division(C1.Util.DX.PointerSize,System.Int32)">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Division.html#C1_Util_DX_PointerSize_op_Division_C1_Util_DX_PointerSize_System_Int32_">operator /(PointerSize, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales a size by the given value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Equality_C1_Util_DX_PointerSize_C1_Util_DX_PointerSize_" data-uid="C1.Util.DX.PointerSize.op_Equality(C1.Util.DX.PointerSize,C1.Util.DX.PointerSize)">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Equality.html#C1_Util_DX_PointerSize_op_Equality_C1_Util_DX_PointerSize_C1_Util_DX_PointerSize_">operator ==(PointerSize, PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests for equality between two objects.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Implicit_C1_Util_DX_PointerSize__System_Int32" data-uid="C1.Util.DX.PointerSize.op_Implicit(C1.Util.DX.PointerSize)~System.Int32">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Implicit.html#C1_Util_DX_PointerSize_op_Implicit_C1_Util_DX_PointerSize__System_Int32">implicit operator int(PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Implicit_C1_Util_DX_PointerSize__System_Int64" data-uid="C1.Util.DX.PointerSize.op_Implicit(C1.Util.DX.PointerSize)~System.Int64">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Implicit.html#C1_Util_DX_PointerSize_op_Implicit_C1_Util_DX_PointerSize__System_Int64">implicit operator long(PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Implicit_C1_Util_DX_PointerSize__System_IntPtr" data-uid="C1.Util.DX.PointerSize.op_Implicit(C1.Util.DX.PointerSize)~System.IntPtr">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Implicit.html#C1_Util_DX_PointerSize_op_Implicit_C1_Util_DX_PointerSize__System_IntPtr">implicit operator IntPtr(PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Implicit_C1_Util_DX_PointerSize__System_Void_" data-uid="C1.Util.DX.PointerSize.op_Implicit(C1.Util.DX.PointerSize)~System.Void*">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Implicit.html#C1_Util_DX_PointerSize_op_Implicit_C1_Util_DX_PointerSize__System_Void_">implicit operator void*(PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a> to void*.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Implicit_System_Int32__C1_Util_DX_PointerSize" data-uid="C1.Util.DX.PointerSize.op_Implicit(System.Int32)~C1.Util.DX.PointerSize">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Implicit.html#C1_Util_DX_PointerSize_op_Implicit_System_Int32__C1_Util_DX_PointerSize">implicit operator PointerSize(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Implicit_System_Int64__C1_Util_DX_PointerSize" data-uid="C1.Util.DX.PointerSize.op_Implicit(System.Int64)~C1.Util.DX.PointerSize">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Implicit.html#C1_Util_DX_PointerSize_op_Implicit_System_Int64__C1_Util_DX_PointerSize">implicit operator PointerSize(long)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Implicit_System_IntPtr__C1_Util_DX_PointerSize" data-uid="C1.Util.DX.PointerSize.op_Implicit(System.IntPtr)~C1.Util.DX.PointerSize">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Implicit.html#C1_Util_DX_PointerSize_op_Implicit_System_IntPtr__C1_Util_DX_PointerSize">implicit operator PointerSize(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a> to <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Implicit_System_Void___C1_Util_DX_PointerSize" data-uid="C1.Util.DX.PointerSize.op_Implicit(System.Void*)~C1.Util.DX.PointerSize">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Implicit.html#C1_Util_DX_PointerSize_op_Implicit_System_Void___C1_Util_DX_PointerSize">implicit operator PointerSize(void*)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from void* to <a class="xref" href="C1.Util.DX.PointerSize.html">PointerSize</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Inequality_C1_Util_DX_PointerSize_C1_Util_DX_PointerSize_" data-uid="C1.Util.DX.PointerSize.op_Inequality(C1.Util.DX.PointerSize,C1.Util.DX.PointerSize)">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Inequality.html#C1_Util_DX_PointerSize_op_Inequality_C1_Util_DX_PointerSize_C1_Util_DX_PointerSize_">operator !=(PointerSize, PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests for inequality between two objects.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Multiply_C1_Util_DX_PointerSize_System_Int32_" data-uid="C1.Util.DX.PointerSize.op_Multiply(C1.Util.DX.PointerSize,System.Int32)">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Multiply.html#C1_Util_DX_PointerSize_op_Multiply_C1_Util_DX_PointerSize_System_Int32_">operator *(PointerSize, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales a size by the given value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Multiply_System_Int32_C1_Util_DX_PointerSize_" data-uid="C1.Util.DX.PointerSize.op_Multiply(System.Int32,C1.Util.DX.PointerSize)">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Multiply.html#C1_Util_DX_PointerSize_op_Multiply_System_Int32_C1_Util_DX_PointerSize_">operator *(int, PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales a size by the given value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_Subtraction_C1_Util_DX_PointerSize_C1_Util_DX_PointerSize_" data-uid="C1.Util.DX.PointerSize.op_Subtraction(C1.Util.DX.PointerSize,C1.Util.DX.PointerSize)">
          <a class="xref" href="C1.Util.DX.PointerSize.op_Subtraction.html#C1_Util_DX_PointerSize_op_Subtraction_C1_Util_DX_PointerSize_C1_Util_DX_PointerSize_">operator -(PointerSize, PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Subtracts two sizes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_UnaryNegation_C1_Util_DX_PointerSize_" data-uid="C1.Util.DX.PointerSize.op_UnaryNegation(C1.Util.DX.PointerSize)">
          <a class="xref" href="C1.Util.DX.PointerSize.op_UnaryNegation.html#C1_Util_DX_PointerSize_op_UnaryNegation_C1_Util_DX_PointerSize_">operator -(PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Reverses the direction of a given size.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_PointerSize_op_UnaryPlus_C1_Util_DX_PointerSize_" data-uid="C1.Util.DX.PointerSize.op_UnaryPlus(C1.Util.DX.PointerSize)">
          <a class="xref" href="C1.Util.DX.PointerSize.op_UnaryPlus.html#C1_Util_DX_PointerSize_op_UnaryPlus_C1_Util_DX_PointerSize_">operator +(PointerSize)</a>
        </td>
        <td class="markdown level1 summary"><p>Assert a size (return it unchanged).</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
