// Add Numa to Numaa public static int numaaAddNuma(this Numaa naa, Numa na, AccessAndStorageFlags copyflag) { if (null == naa || null == na) { throw new ArgumentNullException("naa, na cannot be null"); } return(Native.DllImports.numaaAddNuma((HandleRef)naa, (HandleRef)na, (int)copyflag)); }
// Boxaa array extension public static int boxaaAddBoxa(this Boxaa baa, Boxa ba, AccessAndStorageFlags copyflag) { if (null == baa || null == ba) { throw new ArgumentNullException("baa, ba cannot be null"); } return(Native.DllImports.boxaaAddBoxa((HandleRef)baa, (HandleRef)ba, (int)copyflag)); }
// Pixa addition public static int pixaAddPix(this Pixa pixa, Pix pix, AccessAndStorageFlags copyflag) { if (null == pixa || null == pix) { throw new ArgumentNullException("pixa, pix cannot be null"); } return(Native.DllImports.pixaAddPix((HandleRef)pixa, (HandleRef)pix, (int)copyflag)); }
public static Pixaa pixaaSelectRange(this Pixaa paas, int first, int last, AccessAndStorageFlags copyflag) { if (null == paas) { throw new ArgumentNullException("paas cannot be null"); } var pointer = Native.DllImports.pixaaSelectRange((HandleRef)paas, first, last, (int)copyflag); if (IntPtr.Zero == pointer) { return(null); } else { return(new Pixaa(pointer)); } }
public static Boxaa boxaEncapsulateAligned(this Boxa boxa, int num, AccessAndStorageFlags copyflag) { if (null == boxa) { throw new ArgumentNullException("boxa cannot be null."); } var pointer = Native.DllImports.boxaEncapsulateAligned((HandleRef)boxa, num, (int)copyflag); if (IntPtr.Zero == pointer) { return(null); } else { return(new Boxaa(pointer)); } }
public static Box pixaGetBox(this Pixa pixa, int index, AccessAndStorageFlags accesstype) { if (null == pixa) { throw new ArgumentNullException("pixa cannot be null"); } var pointer = Native.DllImports.pixaGetBox((HandleRef)pixa, index, (int)accesstype); if (IntPtr.Zero == pointer) { return(null); } else { return(new Box(pointer)); } }
public static Pixaa pixaSort2dByIndex(this Pixa pixas, Numaa naa, AccessAndStorageFlags copyflag) { if (null == pixas || null == naa) { throw new ArgumentNullException("pixas, na cannot be null"); } var pointer = Native.DllImports.pixaSort2dByIndex((HandleRef)pixas, (HandleRef)naa, (int)copyflag); if (IntPtr.Zero == pointer) { return(null); } else { return(new Pixaa(pointer)); } }
public static Pixa pixaaFlattenToPixa(this Pixaa paa, out Numa pnaindex, AccessAndStorageFlags copyflag) { if (null == paa) { throw new ArgumentNullException("paa cannot be null"); } IntPtr pnaindexPtr; var pointer = Native.DllImports.pixaaFlattenToPixa((HandleRef)paa, out pnaindexPtr, (int)copyflag); pnaindex = new Numa(pnaindexPtr); if (IntPtr.Zero == pointer) { return(null); } else { return(new Pixa(pointer)); } }
// Pixacomp conversion to Pixa public static Pixa pixaCreateFromPixacomp(this PixaComp pixac, AccessAndStorageFlags accesstype) { var pointer = Native.DllImports.pixaCreateFromPixacomp((HandleRef)pixac, (int)accesstype); return(new Pixa(pointer)); }
public static Box pixacompGetBox(this PixaComp pixac, int index, AccessAndStorageFlags accesstype) { var pointer = Native.DllImports.pixacompGetBox((HandleRef)pixac, index, (int)accesstype); return(new Box(pointer)); }
public static PixComp pixacompGetPixcomp(this PixaComp pixac, int index, AccessAndStorageFlags copyflag) { var pointer = Native.DllImports.pixacompGetPixcomp((HandleRef)pixac, index, (int)copyflag); return(new PixComp(pointer)); }
public static string sarrayGetString(this Sarray sa, int index, AccessAndStorageFlags copyflag) { var pointer = Native.DllImports.sarrayGetString((HandleRef)sa, index, (int)copyflag); return(Marshal.PtrToStringAnsi(pointer)); }
public static int sarrayReplaceString(this Sarray sa, int index, string newstr, AccessAndStorageFlags copyflag) { return(Native.DllImports.sarrayReplaceString((HandleRef)sa, index, newstr, (int)copyflag)); }
// Add/Remove string public static int sarrayAddString(this Sarray sa, string str, AccessAndStorageFlags copyflag) { return(Native.DllImports.sarrayAddString((HandleRef)sa, str, (int)copyflag)); }
public static Pixa pixaBinSort(this Pixa pixas, SortTypeFlags sorttype, SortOrderFlags sortorder, out Numa pnaindex, AccessAndStorageFlags copyflag) { if (null == pixas) { throw new ArgumentNullException("pixas cannot be null"); } IntPtr pnaindexPtr; var pointer = Native.DllImports.pixaBinSort((HandleRef)pixas, (int)sorttype, (int)sortorder, out pnaindexPtr, (int)copyflag); pnaindex = new Numa(pnaindexPtr); if (IntPtr.Zero == pointer) { return(null); } else { return(new Pixa(pointer)); } }
public static Boxa boxaaFlattenAligned(this Boxaa baa, int num, Box fillerbox, AccessAndStorageFlags copyflag) { if (null == baa || null == fillerbox) { throw new ArgumentNullException("baa, fillerbox cannot be null."); } var pointer = Native.DllImports.boxaaFlattenAligned((HandleRef)baa, num, (HandleRef)fillerbox, (int)copyflag); if (IntPtr.Zero == pointer) { return(null); } else { return(new Boxa(pointer)); } }