Click or drag to resize

JCOBridgeDirectBufferT Class

A class to manage shared memory between .NET and JVM using a memory region created in the CLR and shared with the JVM using https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html
Inheritance Hierarchy
SystemObject
  MASES.JCOBridge.C2JBridgeJCOBridgeDirectBufferT

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.21.241219-a6a144ea07c497c3a9a1be842408e852afb458be
Syntax
public class JCOBridgeDirectBuffer<T> : IEnumerable<T>, 
	IEnumerable, IDisposable

Type Parameters

T
The Type to be used: it can be any Byte, Int16, Int32, Int64, Single, Double or a type defined as a struct

The JCOBridgeDirectBufferT type exposes the following members.

Properties
 NameDescription
Public propertyItem Get or set the memory of the shared buffer at index
Public propertyJavaObject The IJavaObject referring to the https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html managing the maoping
Top
Methods
 NameDescription
Public methodAsTNew Returns a new instance of JCOBridgeDirectBufferT
Public methodCopyTo Fills the destination with the copy of the memory this JCOBridgeDirectBufferT instance is holding
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodFillWithArrayTArray Copies the content of array into memory managed from this JCOBridgeDirectBufferT instance
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetEnumeratorReturns an enumerator that iterates through the collection.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetValue(Int32)Gets the value at the specified position in the one-dimensional Array. The index is specified as a 32-bit integer.
Public methodGetValue(Int64)Gets the value at the specified position in the one-dimensional Array. The index is specified as a 64-bit integer.
Public methodInitializeInitializes every element of the value-type Array by calling the default constructor of the value type.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetValue(T, Int32)Sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 32-bit integer.
Public methodSetValue(T, Int64)Sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 64-bit integer.
Public methodToArrayTArray Returns a TArray array which is the copy of the memory this JCOBridgeDirectBufferT instance is holding
Public methodToArrayTArray(TArray, Boolean) Fills the array with the copy of the memory this JCOBridgeDirectBufferT instance is holding
Public methodToStream Converts this instance to a Stream can be used to manage directly the underlying memory without make intermediate array copy
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Operators
 NameDescription
Public operatorStatic member(JCOBridgeDirectBufferT to T) Returns a T array which is the copy of the memory the t instance is holding
Public operatorStatic member(JCOBridgeDirectBufferT to Stream) Converts this instance to a Stream can be used to manage directly the underlying memory without make intermediate array copy
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn Converts a generic object
(Defined by JCOBridgeExtensions)
Public Extension MethodToNative Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions)
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumeratorReturns an enumerator that iterates through a collection.
Top
See Also