IntBuffer IntBuffer Class

Definition

A buffer of ints.

[Android.Runtime.Register("java/nio/IntBuffer", ApiSince=1, DoNotGenerateAcw=true)]
public abstract class IntBuffer : Java.Nio.Buffer, IDisposable, Java.Lang.IComparable
type IntBuffer = class
    inherit Buffer
    interface IComparable
    interface IJavaObject
    interface IDisposable
Inheritance
Attributes
Implements

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

IntBuffer(IntPtr, JniHandleOwnership) IntBuffer(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasArray HasArray

Returns true if array and arrayOffset won't throw.

HasRemaining HasRemaining

Indicates if there are elements remaining in this buffer, that is if position .

(Inherited from Buffer)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsDirect IsDirect

Returns true if this is a direct buffer.

(Inherited from Buffer)
IsReadOnly IsReadOnly

Indicates whether this buffer is read-only.

(Inherited from Buffer)
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Allocate(Int32) Allocate(Int32)

Creates an int buffer based on a newly allocated int array.

ArrayOffset() ArrayOffset()

Returns the offset into the array returned by array of the first element of the buffer (optional operation).

AsReadOnlyBuffer() AsReadOnlyBuffer()

Returns a read-only buffer that shares its content with this buffer.

Capacity() Capacity()

Returns the capacity of this buffer.

(Inherited from Buffer)
Clear() Clear()

Clears this buffer.

(Inherited from Buffer)
Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
Compact() Compact()

Compacts this int buffer.

CompareTo(IntBuffer) CompareTo(IntBuffer)

Compares the remaining ints of this buffer to another int buffer's remaining ints.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Duplicate() Duplicate()

Returns a duplicated buffer that shares its content with this buffer.

Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
Flip() Flip()

Flips this buffer.

(Inherited from Buffer)
Get() Get()

Returns the int at the current position and increases the position by 1.

Get(Int32) Get(Int32)

Returns an int at the specified index; the position is not changed.

Get(Int32[]) Get(Int32[])

Reads ints from the current position into the specified int array and increases the position by the number of ints read.

Get(Int32[], Int32, Int32) Get(Int32[], Int32, Int32)

Reads ints from the current position into the specified int array, starting from the specified offset, and increases the position by the number of ints read.

GetDirectBufferAddress() GetDirectBufferAddress() Inherited from Buffer
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Limit() Limit()

Returns the limit of this buffer.

(Inherited from Buffer)
Limit(Int32) Limit(Int32)

Sets the limit of this buffer.

(Inherited from Buffer)
Mark() Mark()

Marks the current position, so that the position may return to this point later by calling reset().

(Inherited from Buffer)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
Order() Order()

Returns the byte order used by this buffer when converting ints from/to bytes.

Position() Position()

Returns the position of this buffer.

(Inherited from Buffer)
Position(Int32) Position(Int32)

Sets the position of this buffer.

(Inherited from Buffer)
Put(Int32) Put(Int32)

Writes the given int to the current position and increases the position by 1.

Put(Int32, Int32) Put(Int32, Int32)

Write a int to the specified index of this buffer; the position is not changed.

Put(Int32[]) Put(Int32[])

Writes ints from the given int array to the current position and increases the position by the number of ints written.

Put(Int32[], Int32, Int32) Put(Int32[], Int32, Int32)

Writes ints from the given int array, starting from the specified offset, to the current position and increases the position by the number of ints written.

Put(IntBuffer) Put(IntBuffer)

Writes all the remaining ints of the src int buffer to this buffer's current position, and increases both buffers' position by the number of ints copied.

Remaining() Remaining()

Returns the number of remaining elements in this buffer, that is limit - position.

(Inherited from Buffer)
Reset() Reset()

Resets the position of this buffer to the mark.

(Inherited from Buffer)
Rewind() Rewind()

Rewinds this buffer.

(Inherited from Buffer)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
Slice() Slice()

Returns a sliced buffer that shares its content with this buffer.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wrap(Int32[]) Wrap(Int32[])

Creates a new int buffer by wrapping the given int array.

Wrap(Int32[], Int32, Int32) Wrap(Int32[], Int32, Int32)

Creates a new int buffer by wrapping the given int array.

Explicit Interface Implementations

IComparable.CompareTo(Object) IComparable.CompareTo(Object)
IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to