ShortBuffer ShortBuffer Class

Definition

A buffer of shorts.

[Android.Runtime.Register("java/nio/ShortBuffer", ApiSince=1, DoNotGenerateAcw=true)]
public abstract class ShortBuffer : Java.Nio.Buffer, IDisposable, Java.Lang.IComparable
type ShortBuffer = class
    inherit Buffer
    interface IComparable
    interface IJavaObject
    interface IDisposable
Inheritance
ShortBufferShortBuffer
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

ShortBuffer(IntPtr, JniHandleOwnership) ShortBuffer(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 a short buffer based on a newly allocated short 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 short buffer.

CompareTo(ShortBuffer) CompareTo(ShortBuffer)

Compare the remaining shorts of this buffer to another short buffer's remaining shorts.

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 short at the current position and increases the position by 1.

Get(Int16[]) Get(Int16[])

Reads shorts from the current position into the specified short array and increases the position by the number of shorts read.

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

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

Get(Int32) Get(Int32)

Returns the short at the specified index; the position is not changed.

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 shorts 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(Int16) Put(Int16)

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

Put(Int16[]) Put(Int16[])

Writes shorts from the given short array to the current position and increases the position by the number of shorts written.

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

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

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

Writes a short to the specified index of this buffer; the position is not changed.

Put(ShortBuffer) Put(ShortBuffer)

Writes all the remaining shorts of the src short buffer to this buffer's current position, and increases both buffers' position by the number of shorts 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(Int16[]) Wrap(Int16[])

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

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

Creates a new short buffer by wrapping the given short 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