Opened 15 years ago

Last modified 15 years ago

#2968 new enhancement

SWIG/Perl typemap for gdBuffer

Reported by: jleslie Owned by: tomkralidis
Priority: normal Milestone:
Component: MapScript-Perl Version: unspecified
Severity: normal Keywords:
Cc: sdlime

Description

This typemap seems to get imageObj::getBytes() to work:

%typemap(out) gdBuffer %{

$result = newSVpvn($1.data, $1.size); if ($1.owns_data)

gdFree($1.data);

%}

Change History (2)

comment:1 by tomkralidis, 15 years ago

Cc: sdlime added

This may be related to #2978. Steve: any comments?

comment:2 by sdlime, 15 years ago

Typemaps are were we need to fix things. I don't know enough Swig anymore to know if this is better than what's in plmodule.i. Although I assume what's there doesn't work so this is worth I try.

Would be nice to add an example that uses getBytes() too.

Steve

Note: See TracTickets for help on using tickets.