Class IntBuffer
public class IntBuffer : Buffer, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Buffer>IntBuffer
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Buffer>.IsAssignableFrom(IJavaType)JVMBridgeBase<Buffer>.IsAssignableFrom<T>()JVMBridgeBase<Buffer>.Execute<T>(params T[])JVMBridgeBase<Buffer>.DynBridgeClazzJVMBridgeBase<Buffer>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
IntBuffer()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("IntBuffer class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public IntBuffer()
IntBuffer(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("IntBuffer class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public IntBuffer(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
Allocate(int)
public static IntBuffer Allocate(int arg0)
Parameters
Returns
AsReadOnlyBuffer()
public IntBuffer AsReadOnlyBuffer()
Returns
Compact()
public IntBuffer Compact()
Returns
CompareTo(IntBuffer)
public int CompareTo(IntBuffer arg0)
Parameters
Returns
CompareTo(object)
public int CompareTo(object arg0)
Parameters
Returns
From(int[], bool, bool, int)
Creates a new IntBuffer in the JVM which belongs to data
public static IntBuffer From(int[] data, bool useMemoryControlBlock = true, bool arrangeCapacity = true, int timeToLive = -1)
Parameters
data
int[]The data to be shared
useMemoryControlBlock
boolAppends to the end of the
data
a memory block will be used to controls and arbitrates memory between CLR and JVMarrangeCapacity
boolIf true the int array in
data
will be resized to the next power of 2, so capacity will be memory aligned and the limit of java.nio.ByteBuffer will be current size ofdata
timeToLive
intThe time to live, expressed in milliseconds, the underlying memory shall remain available; if the time to live expires the pinned memory is retired leaving potentially the JVM under the possibility of an access violation.
Returns
Get()
public int Get()
Returns
Get(int)
public int Get(int arg0)
Parameters
Returns
Get(int[])
public IntBuffer Get(int[] arg0)
Parameters
Returns
Get(int[], int, int)
public IntBuffer Get(int[] arg0, int arg1, int arg2)
Parameters
Returns
Mismatch(IntBuffer)
public int Mismatch(IntBuffer arg0)
Parameters
Returns
Order()
public ByteOrder Order()
Returns
Put(IntBuffer)
public IntBuffer Put(IntBuffer arg0)
Parameters
Returns
Put(int)
public IntBuffer Put(int arg0)
Parameters
Returns
Put(int, int)
public IntBuffer Put(int arg0, int arg1)
Parameters
Returns
Put(int[])
public IntBuffer Put(int[] arg0)
Parameters
Returns
Put(int[], int, int)
public IntBuffer Put(int[] arg0, int arg1, int arg2)
Parameters
Returns
ToArray(bool)
public int[] ToArray(bool bypassDirectConvert = false)
Parameters
Returns
ToDirectBuffer()
Returns an instance of MASES.JCOBridge.C2JBridge.JCOBridgeDirectBuffer<T>
public JCOBridgeDirectBuffer<int> ToDirectBuffer()
Returns
- JCOBridgeDirectBuffer<int>
The MASES.JCOBridge.C2JBridge.JCOBridgeDirectBuffer<T> associated to this instance
Remarks
The returned MASES.JCOBridge.C2JBridge.JCOBridgeDirectBuffer<T> can be used to directly access and manages JVM memory without any memory move
Wrap(int[])
public static IntBuffer Wrap(int[] arg0)
Parameters
Returns
Wrap(int[], int, int)
public static IntBuffer Wrap(int[] arg0, int arg1, int arg2)
Parameters
Returns
Operators
implicit operator Comparable(IntBuffer)
Converter from IntBuffer to Comparable
public static implicit operator Comparable(IntBuffer t)
Parameters
Returns
implicit operator Comparable<IntBuffer>(IntBuffer)
Converter from IntBuffer to Comparable<T>
public static implicit operator Comparable<IntBuffer>(IntBuffer buffer)
Parameters
buffer
IntBuffer
Returns
implicit operator JCOBridgeDirectBuffer<int>(IntBuffer)
Converts an instance of IntBuffer into MASES.JCOBridge.C2JBridge.JCOBridgeDirectBuffer<T>
public static implicit operator JCOBridgeDirectBuffer<int>(IntBuffer t)
Parameters
Returns
- JCOBridgeDirectBuffer<int>
implicit operator int[](IntBuffer)
public static implicit operator int[](IntBuffer t)
Parameters
Returns
- int[]
Remarks
If the IntBuffer supports direct access the function tries to move data from JVM memory without JNI, otherwise fallback to the standard memory copy.
implicit operator IntBuffer(int[])
Converts an instance of int array into IntBuffer using the default parameters of From(int[], bool, bool, int)
public static implicit operator IntBuffer(int[] t)
Parameters
t
int[]
Returns
Remarks
If the JVM supports direct access the function will share with the JVM the memory without JNI, otherwise fallback to the standard memory copy.