@@ -6995,6 +6995,132 @@ public static MemorySegment vips_image_new() {
6995
6995
}
6996
6996
}
6997
6997
6998
+ private static class vips_image_new_from_memory {
6999
+ public static final FunctionDescriptor DESC = FunctionDescriptor .of (
7000
+ VipsRaw .C_POINTER ,
7001
+ VipsRaw .C_POINTER ,
7002
+ VipsRaw .C_LONG ,
7003
+ VipsRaw .C_INT ,
7004
+ VipsRaw .C_INT ,
7005
+ VipsRaw .C_INT ,
7006
+ VipsRaw .C_INT
7007
+ );
7008
+
7009
+ public static final MemorySegment ADDR = VipsRaw .findOrThrow ("vips_image_new_from_memory" );
7010
+
7011
+ public static final MethodHandle HANDLE = Linker .nativeLinker ().downcallHandle (ADDR , DESC );
7012
+ }
7013
+
7014
+ /**
7015
+ * Function descriptor for:
7016
+ * {@snippet lang=c :
7017
+ * extern VipsImage *vips_image_new_from_memory(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
7018
+ * }
7019
+ */
7020
+ public static FunctionDescriptor vips_image_new_from_memory$descriptor () {
7021
+ return vips_image_new_from_memory .DESC ;
7022
+ }
7023
+
7024
+ /**
7025
+ * Downcall method handle for:
7026
+ * {@snippet lang=c :
7027
+ * extern VipsImage *vips_image_new_from_memory(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
7028
+ * }
7029
+ */
7030
+ public static MethodHandle vips_image_new_from_memory$handle () {
7031
+ return vips_image_new_from_memory .HANDLE ;
7032
+ }
7033
+
7034
+ /**
7035
+ * Address for:
7036
+ * {@snippet lang=c :
7037
+ * extern VipsImage *vips_image_new_from_memory(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
7038
+ * }
7039
+ */
7040
+ public static MemorySegment vips_image_new_from_memory$address () {
7041
+ return vips_image_new_from_memory .ADDR ;
7042
+ }
7043
+
7044
+ /**
7045
+ * {@snippet lang=c :
7046
+ * extern VipsImage *vips_image_new_from_memory(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
7047
+ * }
7048
+ */
7049
+ public static MemorySegment vips_image_new_from_memory (MemorySegment data , long size , int width , int height , int bands , int format ) {
7050
+ var mh$ = vips_image_new_from_memory .HANDLE ;
7051
+ try {
7052
+ if (TRACE_DOWNCALLS ) {
7053
+ traceDowncall ("vips_image_new_from_memory" , data , size , width , height , bands , format );
7054
+ }
7055
+ return (MemorySegment )mh$ .invokeExact (data , size , width , height , bands , format );
7056
+ } catch (Throwable ex$ ) {
7057
+ throw new AssertionError ("should not reach here" , ex$ );
7058
+ }
7059
+ }
7060
+
7061
+ private static class vips_image_new_from_memory_copy {
7062
+ public static final FunctionDescriptor DESC = FunctionDescriptor .of (
7063
+ VipsRaw .C_POINTER ,
7064
+ VipsRaw .C_POINTER ,
7065
+ VipsRaw .C_LONG ,
7066
+ VipsRaw .C_INT ,
7067
+ VipsRaw .C_INT ,
7068
+ VipsRaw .C_INT ,
7069
+ VipsRaw .C_INT
7070
+ );
7071
+
7072
+ public static final MemorySegment ADDR = VipsRaw .findOrThrow ("vips_image_new_from_memory_copy" );
7073
+
7074
+ public static final MethodHandle HANDLE = Linker .nativeLinker ().downcallHandle (ADDR , DESC );
7075
+ }
7076
+
7077
+ /**
7078
+ * Function descriptor for:
7079
+ * {@snippet lang=c :
7080
+ * extern VipsImage *vips_image_new_from_memory_copy(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
7081
+ * }
7082
+ */
7083
+ public static FunctionDescriptor vips_image_new_from_memory_copy$descriptor () {
7084
+ return vips_image_new_from_memory_copy .DESC ;
7085
+ }
7086
+
7087
+ /**
7088
+ * Downcall method handle for:
7089
+ * {@snippet lang=c :
7090
+ * extern VipsImage *vips_image_new_from_memory_copy(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
7091
+ * }
7092
+ */
7093
+ public static MethodHandle vips_image_new_from_memory_copy$handle () {
7094
+ return vips_image_new_from_memory_copy .HANDLE ;
7095
+ }
7096
+
7097
+ /**
7098
+ * Address for:
7099
+ * {@snippet lang=c :
7100
+ * extern VipsImage *vips_image_new_from_memory_copy(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
7101
+ * }
7102
+ */
7103
+ public static MemorySegment vips_image_new_from_memory_copy$address () {
7104
+ return vips_image_new_from_memory_copy .ADDR ;
7105
+ }
7106
+
7107
+ /**
7108
+ * {@snippet lang=c :
7109
+ * extern VipsImage *vips_image_new_from_memory_copy(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
7110
+ * }
7111
+ */
7112
+ public static MemorySegment vips_image_new_from_memory_copy (MemorySegment data , long size , int width , int height , int bands , int format ) {
7113
+ var mh$ = vips_image_new_from_memory_copy .HANDLE ;
7114
+ try {
7115
+ if (TRACE_DOWNCALLS ) {
7116
+ traceDowncall ("vips_image_new_from_memory_copy" , data , size , width , height , bands , format );
7117
+ }
7118
+ return (MemorySegment )mh$ .invokeExact (data , size , width , height , bands , format );
7119
+ } catch (Throwable ex$ ) {
7120
+ throw new AssertionError ("should not reach here" , ex$ );
7121
+ }
7122
+ }
7123
+
6998
7124
private static class vips_image_set_delete_on_close {
6999
7125
public static final FunctionDescriptor DESC = FunctionDescriptor .ofVoid (
7000
7126
VipsRaw .C_POINTER ,
0 commit comments