Table of Contents

Class IntBuffer

Namespace
Java.Nio
Assembly
MASES.JNet.dll
public class IntBuffer : Buffer, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Buffer>
IntBuffer
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Buffer>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Buffer>.IsAssignableFrom<T>()
JVMBridgeBase<Buffer>.Execute<T>(params T[])
JVMBridgeBase<Buffer>.DynBridgeClazz
JVMBridgeBase<Buffer>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Allocate(int)

public static IntBuffer Allocate(int arg0)

Parameters

arg0 int

int

Returns

IntBuffer

IntBuffer

AsReadOnlyBuffer()

public IntBuffer AsReadOnlyBuffer()

Returns

IntBuffer

IntBuffer

Compact()

public IntBuffer Compact()

Returns

IntBuffer

IntBuffer

CompareTo(IntBuffer)

public int CompareTo(IntBuffer arg0)

Parameters

arg0 IntBuffer

IntBuffer

Returns

int

int

CompareTo(object)

public int CompareTo(object arg0)

Parameters

arg0 object

object

Returns

int

int

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 bool

Appends to the end of the data a memory block will be used to controls and arbitrates memory between CLR and JVM

arrangeCapacity bool

If 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 of data

timeToLive int

The 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

IntBuffer

A new instance of IntBuffer

Get()

public int Get()

Returns

int

int

Get(int)

public int Get(int arg0)

Parameters

arg0 int

int

Returns

int

int

Get(int[])

public IntBuffer Get(int[] arg0)

Parameters

arg0 int[]

int

Returns

IntBuffer

IntBuffer

Get(int[], int, int)

public IntBuffer Get(int[] arg0, int arg1, int arg2)

Parameters

arg0 int[]

int

arg1 int

int

arg2 int

int

Returns

IntBuffer

IntBuffer

Mismatch(IntBuffer)

public int Mismatch(IntBuffer arg0)

Parameters

arg0 IntBuffer

IntBuffer

Returns

int

int

Order()

public ByteOrder Order()

Returns

ByteOrder

ByteOrder

Put(IntBuffer)

public IntBuffer Put(IntBuffer arg0)

Parameters

arg0 IntBuffer

IntBuffer

Returns

IntBuffer

IntBuffer

Put(int)

public IntBuffer Put(int arg0)

Parameters

arg0 int

int

Returns

IntBuffer

IntBuffer

Put(int, int)

public IntBuffer Put(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

IntBuffer

IntBuffer

Put(int[])

public IntBuffer Put(int[] arg0)

Parameters

arg0 int[]

int

Returns

IntBuffer

IntBuffer

Put(int[], int, int)

public IntBuffer Put(int[] arg0, int arg1, int arg2)

Parameters

arg0 int[]

int

arg1 int

int

arg2 int

int

Returns

IntBuffer

IntBuffer

ToArray(bool)

Returns the int array managed from this IntBuffer

public int[] ToArray(bool bypassDirectConvert = false)

Parameters

bypassDirectConvert bool

true to bypass the conversion using direct buffer

Returns

int[]

The int array managed from this IntBuffer

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

arg0 int[]

int

Returns

IntBuffer

IntBuffer

Wrap(int[], int, int)

public static IntBuffer Wrap(int[] arg0, int arg1, int arg2)

Parameters

arg0 int[]

int

arg1 int

int

arg2 int

int

Returns

IntBuffer

IntBuffer

Operators

implicit operator Comparable(IntBuffer)

Converter from IntBuffer to Comparable

public static implicit operator Comparable(IntBuffer t)

Parameters

t IntBuffer

Returns

Comparable

implicit operator Comparable<IntBuffer>(IntBuffer)

Converter from IntBuffer to Comparable<T>

public static implicit operator Comparable<IntBuffer>(IntBuffer buffer)

Parameters

buffer IntBuffer

Returns

Comparable<IntBuffer>

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

t IntBuffer

Returns

JCOBridgeDirectBuffer<int>

implicit operator int[](IntBuffer)

Converts an instance of IntBuffer into int array

public static implicit operator int[](IntBuffer t)

Parameters

t IntBuffer

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

IntBuffer

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.