gmp_lib.free Method (void_ptr, size_t)

GMP Native Interface for .NET

gmp_libfree Method (void_ptr, size_t)
De-allocate the space pointed to by ptr.

Namespace:  Math.Gmp.Native
Assembly:  Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void free(
	void_ptr ptr,
	size_t size
)
Public Shared Sub free ( 
	ptr As void_ptr,
	size As size_t
)
public:
static void free(
	void_ptr ptr, 
	size_t size
)
static member free : 
        ptr : void_ptr * 
        size : size_t -> unit 

Parameters

ptr
Type: Math.Gmp.Nativevoid_ptr
Pointer to previously allocated block.
size
Type: Math.Gmp.Nativesize_t
Number of bytes of previously allocated block.
Remarks

The free function parameter size is passed for convenience, but of course it can be ignored if not needed by an implementation. The default functions using malloc and friends for instance don’t use it.

See Also