LongBuffer Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Buffer lungo.
[Android.Runtime.Register("java/nio/LongBuffer", DoNotGenerateAcw=true)]
public abstract class LongBuffer : Java.Nio.Buffer, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.IComparable
[<Android.Runtime.Register("java/nio/LongBuffer", DoNotGenerateAcw=true)>]
type LongBuffer = class
inherit Buffer
interface IComparable
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Ereditarietà
- Attributi
- Implementazioni
Commenti
Buffer lungo.
Questa classe definisce quattro categorie di operazioni su buffer lunghi:
<ul>
<li>
Metodi assoluti e relativi #get() <i>get</i>
#put(long) <i>put</i>
che leggono e scrivono singoli long;
</li>
<li>
Metodi relativi #get(long[]) <i>bulk get</i>
che trasferisce sequenze contigue di lunghi da questo buffer in una matrice; e
</li>
<li>
Metodi relativi #put(long[]) <i>bulk put</i>
che trasferiscono sequenze contigue di lunghi da una matrice lunga o da un altro buffer lungo in questo buffer; e
</li>
<li>
Metodi per #compact compacting
, #duplicate duplicating
e #slice slicing
un buffer lungo.
</li>
</ul>
I buffer lunghi possono essere creati da #allocate <i>allocation</i>
, che alloca spazio per il buffer
contenuto, da #wrap(long[]) <i>wrapping</i>
una matrice lunga esistente in un buffer o creando una <visualizzazione< i>/i> di un buffer di byte esistente.
Come un buffer di byte, un buffer lungo è <diretto></i> o <i>non diretto</i>. Un buffer lungo creato tramite i wrap
metodi di questa classe sarà non diretto. Un buffer lungo creato come visualizzazione di un buffer di byte sarà diretto se e solo se il buffer dei byte stesso è diretto. Indica se un buffer lungo è diretto può essere determinato richiamando il #isDirect isDirect
metodo .
I metodi in questa classe che non hanno altrimenti un valore da restituire vengono specificati per restituire il buffer su cui vengono richiamati. In questo modo è possibile concatenare le chiamate al metodo.
Aggiunta nella versione 1.4.
Documentazione java per java.nio.LongBuffer
.
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal Android e usato in base ai termini descritti in 2.5 Attribution License Creative Commons 2.5 Attribution License.
Costruttori
LongBuffer(IntPtr, JniHandleOwnership) |
Costruttore utilizzato durante la creazione di rappresentazioni gestite di oggetti JNI; chiamato dal runtime. |
Proprietà
Class |
Restituisce la classe di runtime di questo |
Handle |
Handle per l'istanza di Android sottostante. (Ereditato da Object) |
HasArray |
Indica se il buffer è supportato da una matrice lunga accessibile. |
HasRemaining |
Indica se sono presenti elementi tra la posizione corrente e il limite. (Ereditato da Buffer) |
IsDirect |
Restituisce true se si tratta di un buffer diretto. (Ereditato da Buffer) |
IsReadOnly |
Indica se questo buffer è di sola lettura. (Ereditato da Buffer) |
JniIdentityHashCode |
Buffer lungo. (Ereditato da Object) |
JniPeerMembers |
Buffer lungo. |
PeerReference |
Buffer lungo. (Ereditato da Object) |
ThresholdClass |
Questa API supporta l'infrastruttura Mono per Android e non deve essere usata direttamente dal codice. |
ThresholdType |
Questa API supporta l'infrastruttura Mono per Android e non deve essere usata direttamente dal codice. |
Metodi
Allocate(Int32) |
Alloca un nuovo buffer lungo. |
ArrayOffset() |
Restituisce l'offset all'interno della matrice di backup del buffer del primo elemento del buffer (operazione facoltativa). |
AsReadOnlyBuffer() |
Crea un nuovo buffer long di sola lettura che condivide il contenuto del buffer. |
Capacity() |
Restituisce la capacità del buffer. (Ereditato da Buffer) |
Clear() |
Cancella questo buffer. (Ereditato da Buffer) |
Clone() |
Crea e restituisce una copia di questo oggetto. (Ereditato da Object) |
Compact() |
Compatta questo buffer (operazione facoltativa). |
CompareTo(LongBuffer) |
Confronta questo buffer con un altro. |
Dispose() |
Buffer lungo. (Ereditato da Object) |
Dispose(Boolean) |
Buffer lungo. (Ereditato da Object) |
Duplicate() |
Crea un nuovo buffer lungo che condivide il contenuto del buffer. |
Equals(Object) |
Indica se un altro oggetto è "uguale a" questo. (Ereditato da Object) |
Flip() |
Capovolge questo buffer. (Ereditato da Buffer) |
Get() |
Metodo get relativo. |
Get(Int32) |
Metodo Get assoluto. |
Get(Int64[]) |
Metodo get bulk relativo. |
Get(Int64[], Int32, Int32) |
Metodo get bulk relativo. |
GetDirectBufferAddress() |
Buffer lungo. (Ereditato da Buffer) |
GetHashCode() |
Restituisce un valore del codice hash per l'oggetto. (Ereditato da Object) |
JavaFinalize() |
Chiamato dal Garbage Collector su un oggetto quando Garbage Collection determina che non sono presenti altri riferimenti all'oggetto . (Ereditato da Object) |
Limit() |
Restituisce il limite del buffer. (Ereditato da Buffer) |
Limit(Int32) |
Imposta il limite del buffer. (Ereditato da Buffer) |
Mark() |
Imposta il contrassegno del buffer nella relativa posizione. (Ereditato da Buffer) |
Mismatch(LongBuffer) |
Trova e restituisce l'indice relativo della prima mancata corrispondenza tra questo buffer e un determinato buffer. |
Notify() |
Riattiva un singolo thread in attesa del monitor dell'oggetto. (Ereditato da Object) |
NotifyAll() |
Riattiva tutti i thread in attesa del monitoraggio di questo oggetto. (Ereditato da Object) |
Order() |
Recupera l'ordine dei byte del buffer. |
Position() |
Restituisce la posizione del buffer. (Ereditato da Buffer) |
Position(Int32) |
Imposta la posizione del buffer. (Ereditato da Buffer) |
Put(Int32, Int64) |
Metodo put assoluto (operazione facoltativa). |
Put(Int64) |
Metodo put relativo (operazione facoltativa). |
Put(Int64[]) |
Metodo bulk put relativo (operazione facoltativa). |
Put(Int64[], Int32, Int32) |
Metodo bulk put relativo (operazione facoltativa). |
Put(LongBuffer) |
Metodo bulk put relativo (operazione facoltativa). |
Remaining() |
Restituisce il numero di elementi tra la posizione corrente e il limite. (Ereditato da Buffer) |
Reset() |
Reimposta la posizione del buffer sulla posizione contrassegnata in precedenza. (Ereditato da Buffer) |
Rewind() |
Riavvolge questo buffer. (Ereditato da Buffer) |
SetHandle(IntPtr, JniHandleOwnership) |
Imposta la proprietà Handle. (Ereditato da Object) |
Slice() |
Crea un nuovo buffer lungo il cui contenuto è una sottosequenza condivisa del contenuto del buffer. |
Slice(Int32, Int32) |
Crea un nuovo buffer lungo il cui contenuto è una sottosequenza condivisa del contenuto del buffer. |
Slice(Int32, Int32) |
Crea un nuovo buffer il cui contenuto è una sottosequenza condivisa del contenuto del buffer. (Ereditato da Buffer) |
ToArray<T>() |
Buffer lungo. (Ereditato da Object) |
ToString() |
Restituisce una rappresentazione in formato stringa dell'oggetto. (Ereditato da Object) |
UnregisterFromRuntime() |
Buffer lungo. (Ereditato da Object) |
Wait() |
Fa sì che il thread corrente attenda finché non viene risvegliato, in genere eseguendo <una>notifica</em> o <em>interrotto</em>. (Ereditato da Object) |
Wait(Int64) |
Fa sì che il thread corrente attenda finché non viene risvegliato, in genere eseguendo <una notifica</>em> o <em>interrotto</em> o fino a quando non è trascorsa una certa quantità di tempo reale. (Ereditato da Object) |
Wait(Int64, Int32) |
Fa sì che il thread corrente attenda finché non viene risvegliato, in genere eseguendo <una notifica</>em> o <em>interrotto</em> o fino a quando non è trascorsa una certa quantità di tempo reale. (Ereditato da Object) |
Wrap(Int64[]) |
Esegue il wrapping di una matrice lunga in un buffer. |
Wrap(Int64[], Int32, Int32) |
Esegue il wrapping di una matrice lunga in un buffer. |
Implementazioni dell'interfaccia esplicita
IComparable.CompareTo(Object) |
Buffer lungo. |
IJavaPeerable.Disposed() |
Buffer lungo. (Ereditato da Object) |
IJavaPeerable.DisposeUnlessReferenced() |
Buffer lungo. (Ereditato da Object) |
IJavaPeerable.Finalized() |
Buffer lungo. (Ereditato da Object) |
IJavaPeerable.JniManagedPeerState |
Buffer lungo. (Ereditato da Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) |
Buffer lungo. (Ereditato da Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Buffer lungo. (Ereditato da Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) |
Buffer lungo. (Ereditato da Object) |
Metodi di estensione
JavaCast<TResult>(IJavaObject) |
Esegue una conversione del tipo verificato dal runtime Android. |
JavaCast<TResult>(IJavaObject) |
Buffer lungo. |
GetJniTypeName(IJavaPeerable) |
Buffer lungo. |