ptr(T) Class

GMP Native Interface for .NET

ptrT Class
Represents a pointer to a value of type T.
Inheritance Hierarchy
SystemObject  Math.Gmp.NativeptrT

Namespace:  Math.Gmp.Native
Assembly:  Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class ptr<T>
where T : struct, new()
Public Class ptr(Of T As {Structure, New})
generic<typename T>
where T : value class, gcnew()
public ref class ptr
type ptr<'T when 'T : struct, new()> =  class end

Type Parameters

T
A value type.

The ptrT type exposes the following members.

Constructors
  NameDescription
Public methodptrT
Creates a new pointer with default value.
Public methodptrT(T)
Creates a new pointer with Value set to value.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldValue
The value that is "pointed to".
Top
Remarks

Mimics the C address-of (&) construct to pass the address of a value type variable to a function of the GMP library.

Note that this is only for value types. Strings and arrays have their own "pointer" types defined with names ending in _ptr.

See Also