Table of Contents

Class DoubleBuffer

Namespace
Java.Nio
Assembly
MASES.JNet.dll
public class DoubleBuffer : Buffer, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Buffer>
DoubleBuffer
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

DoubleBuffer()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("DoubleBuffer 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 DoubleBuffer()

DoubleBuffer(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("DoubleBuffer 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 DoubleBuffer(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 DoubleBuffer Allocate(int arg0)

Parameters

arg0 int

int

Returns

DoubleBuffer

DoubleBuffer

AsReadOnlyBuffer()

public DoubleBuffer AsReadOnlyBuffer()

Returns

DoubleBuffer

DoubleBuffer

Compact()

public DoubleBuffer Compact()

Returns

DoubleBuffer

DoubleBuffer

CompareTo(DoubleBuffer)

public int CompareTo(DoubleBuffer arg0)

Parameters

arg0 DoubleBuffer

DoubleBuffer

Returns

int

int

CompareTo(object)

public int CompareTo(object arg0)

Parameters

arg0 object

object

Returns

int

int

From(double[], bool, bool, int)

Creates a new DoubleBuffer in the JVM which belongs to data

public static DoubleBuffer From(double[] data, bool useMemoryControlBlock = true, bool arrangeCapacity = true, int timeToLive = -1)

Parameters

data double[]

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 double 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

DoubleBuffer

A new instance of DoubleBuffer

Get()

public double Get()

Returns

double

double

Get(double[])

public DoubleBuffer Get(double[] arg0)

Parameters

arg0 double[]

double

Returns

DoubleBuffer

DoubleBuffer

Get(double[], int, int)

public DoubleBuffer Get(double[] arg0, int arg1, int arg2)

Parameters

arg0 double[]

double

arg1 int

int

arg2 int

int

Returns

DoubleBuffer

DoubleBuffer

Get(int)

public double Get(int arg0)

Parameters

arg0 int

int

Returns

double

double

Mismatch(DoubleBuffer)

public int Mismatch(DoubleBuffer arg0)

Parameters

arg0 DoubleBuffer

DoubleBuffer

Returns

int

int

Order()

public ByteOrder Order()

Returns

ByteOrder

ByteOrder

Put(DoubleBuffer)

public DoubleBuffer Put(DoubleBuffer arg0)

Parameters

arg0 DoubleBuffer

DoubleBuffer

Returns

DoubleBuffer

DoubleBuffer

Put(double)

public DoubleBuffer Put(double arg0)

Parameters

arg0 double

double

Returns

DoubleBuffer

DoubleBuffer

Put(double[])

public DoubleBuffer Put(double[] arg0)

Parameters

arg0 double[]

double

Returns

DoubleBuffer

DoubleBuffer

Put(double[], int, int)

public DoubleBuffer Put(double[] arg0, int arg1, int arg2)

Parameters

arg0 double[]

double

arg1 int

int

arg2 int

int

Returns

DoubleBuffer

DoubleBuffer

Put(int, double)

public DoubleBuffer Put(int arg0, double arg1)

Parameters

arg0 int

int

arg1 double

double

Returns

DoubleBuffer

DoubleBuffer

ToArray(bool)

Returns the double array managed from this DoubleBuffer

public double[] ToArray(bool bypassDirectConvert = false)

Parameters

bypassDirectConvert bool

true to bypass the conversion using direct buffer

Returns

double[]

The double array managed from this DoubleBuffer

ToDirectBuffer()

Returns an instance of MASES.JCOBridge.C2JBridge.JCOBridgeDirectBuffer<T>

public JCOBridgeDirectBuffer<double> ToDirectBuffer()

Returns

JCOBridgeDirectBuffer<double>

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(double[])

public static DoubleBuffer Wrap(double[] arg0)

Parameters

arg0 double[]

double

Returns

DoubleBuffer

DoubleBuffer

Wrap(double[], int, int)

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

Parameters

arg0 double[]

double

arg1 int

int

arg2 int

int

Returns

DoubleBuffer

DoubleBuffer

Operators

implicit operator Comparable(DoubleBuffer)

Converter from DoubleBuffer to Comparable

public static implicit operator Comparable(DoubleBuffer t)

Parameters

t DoubleBuffer

Returns

Comparable

implicit operator Comparable<DoubleBuffer>(DoubleBuffer)

Converter from DoubleBuffer to Comparable<T>

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

Parameters

buffer DoubleBuffer

Returns

Comparable<DoubleBuffer>

implicit operator JCOBridgeDirectBuffer<double>(DoubleBuffer)

Converts an instance of DoubleBuffer into MASES.JCOBridge.C2JBridge.JCOBridgeDirectBuffer<T>

public static implicit operator JCOBridgeDirectBuffer<double>(DoubleBuffer t)

Parameters

t DoubleBuffer

Returns

JCOBridgeDirectBuffer<double>

implicit operator double[](DoubleBuffer)

Converts an instance of DoubleBuffer into double array

public static implicit operator double[](DoubleBuffer t)

Parameters

t DoubleBuffer

Returns

double[]

Remarks

If the DoubleBuffer supports direct access the function tries to move data from JVM memory without JNI, otherwise fallback to the standard memory copy.

implicit operator DoubleBuffer(double[])

Converts an instance of double array into DoubleBuffer using the default parameters of From(double[], bool, bool, int)

public static implicit operator DoubleBuffer(double[] t)

Parameters

t double[]

Returns

DoubleBuffer

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.