UInt32Ptr Structure

Represents an 32-Bit Pointer (Process independant)

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public struct UInt32Ptr

The UInt32Ptr type exposes the following members.

Constructors

 

Name

Description

UInt32Ptr.

Initializes a new instance of the UInt32Ptr struct.

UInt32Ptr(UInt32)

Initializes a new instance of the UInt32Ptr struct.

UInt32Ptr(Void*)

Initializes a new instance of the UInt32Ptr struct.

Properties

 

Name

Description

Size

Gets the size (4-Byte)

Methods

 

Name

Description

Add

Adds an offset to the pointer.

Equals

Determines whether the specified Object is equal to this instance. (Overrides ValueType.Equals(Object).)

GetHashCode

Returns a hash code for this instance. (Overrides ValueType.GetHashCode..)

GetType

Gets the Type of the current instance. (Inherited from Object.)

Subtract

Subtracts an offset from the specified pointer.

ToPointer

Converts this 32-Pointer object to an unsafe void* pointer

ToString

Returns a String that represents this instance. (Overrides ValueType.ToString..)

ToUInt32

Converts the 32-Bit Pointer to uint

ToUInt64

Converts the 32-Bit Pointer to ulong.

Operators

 

Name

Description

Addition

Implements the + operator.

Equality

Implements the == operator.

.(UInt32 to UInt32Ptr)

Performs an explicit conversion from UInt32 to UInt32Ptr.

.(UInt32Ptr to UInt32)

Performs an explicit conversion from UInt32Ptr to UInt32.

.(UInt32Ptr to UInt64)

Performs an explicit conversion from UInt32Ptr to UInt64.

.(UInt32Ptr to UIntPtr)

Performs an explicit conversion from UInt32Ptr to UIntPtr.

.(UInt32Ptr to Void*)

Performs an explicit conversion from UInt32Ptr to Void.

.(UInt64 to UInt32Ptr)

Performs an explicit conversion from UInt64 to UInt32Ptr.

.(UInt64Ptr to UInt32Ptr)

Performs an explicit conversion from UInt64Ptr to UInt32Ptr.

.(Void* to UInt32Ptr)

Performs an explicit conversion from Void to UInt32Ptr.

Inequality

Implements the != operator.

Subtraction

Implements the - operator.

Fields

 

Name

Description

Zero

Zero/Null Pointer

Reference

TwinCAT.TypeSystem Namespace

System.UIntPtr