Package org.gnome.gobject
Interface TypeValueCopyFunc
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("io.github.jwharm.JavaGI")
public interface TypeValueCopyFunc
extends FunctionPointer
Functional interface declaration of the
TypeValueCopyFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidCopies the content of aGValueinto another.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment srcValue, MemorySegment destValue) Theupcallmethod is called from native code.
-
Method Details
-
run
Copies the content of aGValueinto another.The
destValueis aGValuewith zero-filled data section andsrcValueis a properly initializedGValueof same type, or derived type.The purpose of this function is to copy the contents of
srcValueintodestValuein a way, that even aftersrcValuehas been freed, the contents ofdestValueremain valid. String type example:dest_value->data[0].v_pointer = g_strdup (src_value->data[0].v_pointer);- Since:
- 2.78
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(org.gnome.gobject.Value, org.gnome.gobject.Value)is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-