Class LongBuffer
public class LongBuffer : Buffer, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Buffer>LongBuffer
- 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
LongBuffer()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("LongBuffer 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 LongBuffer()
LongBuffer(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("LongBuffer 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 LongBuffer(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 LongBuffer Allocate(int arg0)
Parameters
Returns
AsReadOnlyBuffer()
public LongBuffer AsReadOnlyBuffer()
Returns
Compact()
public LongBuffer Compact()
Returns
CompareTo(LongBuffer)
public int CompareTo(LongBuffer arg0)
Parameters
arg0
LongBuffer
Returns
CompareTo(object)
public int CompareTo(object arg0)
Parameters
Returns
From(long[], bool, bool, int)
Creates a new LongBuffer in the JVM which belongs to data
public static LongBuffer From(long[] data, bool useMemoryControlBlock = true, bool arrangeCapacity = true, int timeToLive = -1)
Parameters
data
long[]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 long 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
- LongBuffer
A new instance of LongBuffer
Get()
public long Get()
Returns
Get(int)
public long Get(int arg0)
Parameters
Returns
Get(long[])
public LongBuffer Get(long[] arg0)
Parameters
Returns
Get(long[], int, int)
public LongBuffer Get(long[] arg0, int arg1, int arg2)
Parameters
Returns
Mismatch(LongBuffer)
public int Mismatch(LongBuffer arg0)
Parameters
arg0
LongBuffer
Returns
Order()
public ByteOrder Order()
Returns
Put(LongBuffer)
public LongBuffer Put(LongBuffer arg0)
Parameters
arg0
LongBuffer
Returns
Put(int, long)
public LongBuffer Put(int arg0, long arg1)
Parameters
Returns
Put(long)
public LongBuffer Put(long arg0)
Parameters
Returns
Put(long[])
public LongBuffer Put(long[] arg0)
Parameters
Returns
Put(long[], int, int)
public LongBuffer Put(long[] arg0, int arg1, int arg2)
Parameters
Returns
ToArray(bool)
Returns the long array managed from this LongBuffer
public long[] ToArray(bool bypassDirectConvert = false)
Parameters
Returns
- long[]
The long array managed from this LongBuffer
ToDirectBuffer()
Returns an instance of MASES.JCOBridge.C2JBridge.JCOBridgeDirectBuffer<T>
public JCOBridgeDirectBuffer<long> ToDirectBuffer()
Returns
- JCOBridgeDirectBuffer<long>
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(long[])
public static LongBuffer Wrap(long[] arg0)
Parameters
Returns
Wrap(long[], int, int)
public static LongBuffer Wrap(long[] arg0, int arg1, int arg2)
Parameters
Returns
Operators
implicit operator Comparable(LongBuffer)
Converter from LongBuffer to Comparable
public static implicit operator Comparable(LongBuffer t)
Parameters
Returns
implicit operator Comparable<LongBuffer>(LongBuffer)
Converter from LongBuffer to Comparable<T>
public static implicit operator Comparable<LongBuffer>(LongBuffer buffer)
Parameters
buffer
LongBuffer
Returns
implicit operator JCOBridgeDirectBuffer<long>(LongBuffer)
Converts an instance of LongBuffer into MASES.JCOBridge.C2JBridge.JCOBridgeDirectBuffer<T>
public static implicit operator JCOBridgeDirectBuffer<long>(LongBuffer t)
Parameters
Returns
- JCOBridgeDirectBuffer<long>
implicit operator long[](LongBuffer)
Converts an instance of LongBuffer into long array
public static implicit operator long[](LongBuffer t)
Parameters
Returns
- long[]
Remarks
If the LongBuffer supports direct access the function tries to move data from JVM memory without JNI, otherwise fallback to the standard memory copy.
implicit operator LongBuffer(long[])
Converts an instance of long array into LongBuffer using the default parameters of From(long[], bool, bool, int)
public static implicit operator LongBuffer(long[] t)
Parameters
t
long[]
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.