Click or drag to resize

IJVMWrapperDirectGetDirectBufferT(IJavaObject, Boolean) Method

Returns a new instance of JCOBridgeDirectBufferT holding the memory of the https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html which belongs to obj

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
JCOBridgeDirectBuffer<T> GetDirectBuffer<T>(
	IJavaObject obj,
	bool leaveOriginalOpen
)
where T : struct, new()

Parameters

obj  IJavaObject
The https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html to read
leaveOriginalOpen  Boolean
to wraps in a new JCOBridgeDirectBufferT instance and leaves obj alive, to Dispose the obj

Type Parameters

T
The native type of the resulting JCOBridgeDirectBufferT

Return Value

JCOBridgeDirectBufferT
A new instance of JCOBridgeDirectBufferT holding the memory of the https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html which belongs to obj
See Also