Click or drag to resize

PdfiumFPDF_AllocMemory Method

Note: This API is now obsolete.

Allocated memory block in FPDFSDK. This memory can be freed by FPDF_FreeMemory(IntPtr) function.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
[ObsoleteAttribute("This method is obsolete", true)]
public static IntPtr FPDF_AllocMemory(
	uint size
)

Parameters

size  UInt32
Byte size of requested memory block. Can not be zero.

Return Value

IntPtr
The allocated pointer. IntPtr.Zero if memory not available.
Remarks

This method is obsolete and will be removed in a future release of the Pdfium .Net SDK

Some FPDFSDK interface may require application to allocate memory for internal use of FPDFSDK. In this case application must call this function to allocate memory, don't use malloc() or other memory allocator. If an error handler installed and exception/long jump is used in the out of memory handling, this function might never return if no memory available.
See Also