You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -57,11 +58,22 @@ public boolean equals(Object o) {
57
58
}
58
59
59
60
/**
60
-
* Gets the raw [MemorySegment] (C pointer) for this image
61
-
* The memory address' lifetime is bound to the scope of the [arena]
62
-
* Usage of the memory address is strongly discouraged, but it is available if some functionality is missing and you need to use it with [VipsHelper]
61
+
* @deprecated See {@link #getUnsafeStructAddress}
63
62
*/
63
+
@Deprecated(
64
+
since = "0.5.10",
65
+
forRemoval = true
66
+
)
64
67
publicMemorySegmentgetUnsafeAddress() {
68
+
returnthis.getUnsafeStructAddress();
69
+
}
70
+
71
+
/**
72
+
* Gets the raw {@link MemorySegment} (C pointer) for this VipsImage struct
73
+
* The memory address' lifetime is bound to the scope of the {@link #arena}
74
+
* Usage of the memory address is strongly discouraged, but it is available if some functionality is missing and you need to use it with {@link VipsHelper}
val unsafeAddress =MethodSpec.methodBuilder("getUnsafeAddress")
139
-
.addJavadoc("Gets the raw [MemorySegment] (C pointer) for this image")
140
-
.addJavadoc("\nThe memory address' lifetime is bound to the scope of the [arena]")
141
-
.addJavadoc("\nUsage of the memory address is strongly discouraged, but it is available if some functionality is missing and you need to use it with [VipsHelper]")
139
+
val unsafeDeprecatedAddress =MethodSpec.methodBuilder("getUnsafeAddress")
140
+
.addJavadoc("@deprecated See {@link #getUnsafeStructAddress}")
val unsafeStructAddress =MethodSpec.methodBuilder("getUnsafeStructAddress")
152
+
.addJavadoc("Gets the raw {@link MemorySegment} (C pointer) for this VipsImage struct")
153
+
.addJavadoc("\nThe memory address' lifetime is bound to the scope of the {@link #arena}")
154
+
.addJavadoc("\nUsage of the memory address is strongly discouraged, but it is available if some functionality is missing and you need to use it with {@link VipsHelper}")
0 commit comments