GMP Native Interface for .NET
ptrT Class |
Represents a pointer to a value of type T.
Inheritance Hierarchy
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
Name | Description | |
---|---|---|
ptrT |
Creates a new pointer with default value.
| |
ptrT(T) |
Creates a new pointer with Value set to value.
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Fields
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