Click or drag to resize

IJVMWrapperDirectNewDirectBuffer Method

Overload List
 NameDescription
Public methodNewDirectBuffer(MemoryStream, Boolean, EventHandlerMemoryStream, Int32) Creates a new https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html in the JVM which shares the stream. The method helps to avoid too many array copies from CLR to JVM
Public methodNewDirectBuffer(IntPtr, Int64, EventHandlerObject, Object, Int32) Creates a new https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html in the JVM which belongs to rawAddr.
Public methodNewDirectBufferT(T, Boolean, Boolean, Int32) Creates a new https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html in the JVM which belongs to data. If this method is used in conjunction with arrangeCapacity and/or useMemoryControlBlock set to , better performances are obtained from NewDirectBuffer(MemoryStream, Boolean, EventHandlerMemoryStream, Int32) becuase MemoryStream automatically manages its capacity and, in general, will be the memory space available for control memory block needed from useMemoryControlBlock set to
Top
See Also