Skip to content

Commit

Permalink
Update to ulong
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilRybergAkson committed Oct 16, 2024
1 parent 7d93c72 commit 34afc2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions swig/include/csharp/gdal_csharp.i
Original file line number Diff line number Diff line change
Expand Up @@ -381,17 +381,17 @@ public CPLErr SetGCPs(GCP[] pGCPs, string pszGCPProjection) {

%rename (GetMemFileBuffer) wrapper_VSIGetMemFileBuffer;

%typemap(cstype) (GIntBig *pnDataLength) "out int";
%typemap(imtype) (GIntBig *pnDataLength) "out int";
%apply (int *OUTPUT) {(GIntBig *pnDataLength)}
%typemap(cstype) (vsi_l_offset *pnDataLength) "out ulong";
%typemap(imtype) (vsi_l_offset *pnDataLength) "out ulong";
%apply (unsigned long long *OUTPUT) {(vsi_l_offset *pnDataLength)}
%typemap(cstype) (int bUnlinkAndSeize) "bool";
%typemap(csin) (int bUnlinkAndSeize) "$csinput ? 1 : 0";

%inline {
GByte* wrapper_VSIGetMemFileBuffer(const char *utf8_path, GIntBig *pnDataLength, int bUnlinkAndSeize)
GByte* wrapper_VSIGetMemFileBuffer(const char *utf8_path, vsi_l_offset *pnDataLength, int bUnlinkAndSeize)
{
return VSIGetMemFileBuffer(utf8_path, reinterpret_cast<vsi_l_offset *>(pnDataLength), bUnlinkAndSeize);
return VSIGetMemFileBuffer(utf8_path, pnDataLength, bUnlinkAndSeize);
}
}

%clear (GIntBig *pnDataLength);
%clear (vsi_l_offset *pnDataLength);

0 comments on commit 34afc2d

Please sign in to comment.