Working with Libraries via the Compiler

Advantages

As efficient as kernel C code

Zero-cost data transfer

No expression serialization

No serialization to WSTP needed

Access to lots of expression manipulation functions

No interface files

LibraryFunctionDeclaration

unsigned long OpenSSL_version_num()

SHA256

unsigned char* SHA256(
	const unsigned char* data,
	size_t count,
	unsigned char* md_buf
)

GEOS

GEOS (cont.)

GEOSGeometry* GEOSBuffer(
	const GEOSGeometry* g,
	double width,
	int quadsegs
)

tyDecs=;

GEOS

GEOSGeometry* GEOSGeom_createPointFromXY(double x, double y)

void GEOSGeom_destroy(GEOSGeometry* g)