ProtoOutputStream 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.
Classe da scrivere in un flusso protobuf.
[Android.Runtime.Register("android/util/proto/ProtoOutputStream", ApiSince=30, DoNotGenerateAcw=true)]
public sealed class ProtoOutputStream : Java.Lang.Object
[<Android.Runtime.Register("android/util/proto/ProtoOutputStream", ApiSince=30, DoNotGenerateAcw=true)>]
type ProtoOutputStream = class
inherit Object
- Ereditarietà
- Attributi
Commenti
Classe da scrivere in un flusso protobuf.
Questa API non è utile o indipendente dai tipi come le classi protobuf standard. Se possibile, la libreria consigliata migliore consiste nell'usare protobuf lite. Tuttavia, negli ambienti (ad esempio la piattaforma Android stessa), è necessaria una versione più efficiente della memoria.
Ogni metodo di scrittura accetta un codice ID dalle classi generate dal protoco e dal valore da scrivere. Per creare un oggetto annidato, chiamare #start(long) e quindi #end(long) al termine.
I codici ID includono informazioni sul tipo incorporate, quindi se si chiama la funzione non corretta, si otterrà un oggetto IllegalArgumentException.
Per recuperare il flusso protobuf codificato, chiamare #getBytes().
flusso al termine degli oggetti di primo livello.
per android.util.proto.ProtoOutputStream.
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.
Costruttori
| Nome | Descrizione |
|---|---|
| ProtoOutputStream() |
Costruire un |
| ProtoOutputStream(Int32) |
Costruire un |
| ProtoOutputStream(Stream) |
Costruire un oggetto |
Campi
| Nome | Descrizione |
|---|---|
| FieldCountMask |
Classe da scrivere in un flusso protobuf. |
| FieldCountPacked |
Classe da scrivere in un flusso protobuf. |
| FieldCountRepeated |
Classe da scrivere in un flusso protobuf. |
| FieldCountShift |
Classe da scrivere in un flusso protobuf. |
| FieldCountSingle |
Classe da scrivere in un flusso protobuf. |
| FieldCountUnknown |
Classe da scrivere in un flusso protobuf. |
| FieldIdShift |
Numero di bit per spostare il numero di campo in modo da formare un tag. |
| FieldTypeBool |
Classe da scrivere in un flusso protobuf. |
| FieldTypeBytes |
Classe da scrivere in un flusso protobuf. |
| FieldTypeDouble |
Classe da scrivere in un flusso protobuf. |
| FieldTypeEnum |
Classe da scrivere in un flusso protobuf. |
| FieldTypeFixed32 |
Classe da scrivere in un flusso protobuf. |
| FieldTypeFixed64 |
Classe da scrivere in un flusso protobuf. |
| FieldTypeFloat |
Classe da scrivere in un flusso protobuf. |
| FieldTypeInt32 |
Classe da scrivere in un flusso protobuf. |
| FieldTypeInt64 |
Classe da scrivere in un flusso protobuf. |
| FieldTypeMask |
Classe da scrivere in un flusso protobuf. |
| FieldTypeMessage |
Classe da scrivere in un flusso protobuf. |
| FieldTypeSfixed32 |
Classe da scrivere in un flusso protobuf. |
| FieldTypeSfixed64 |
Classe da scrivere in un flusso protobuf. |
| FieldTypeShift |
Classe da scrivere in un flusso protobuf. |
| FieldTypeSint32 |
Classe da scrivere in un flusso protobuf. |
| FieldTypeSint64 |
Classe da scrivere in un flusso protobuf. |
| FieldTypeString |
Classe da scrivere in un flusso protobuf. |
| FieldTypeUint32 |
Classe da scrivere in un flusso protobuf. |
| FieldTypeUint64 |
Classe da scrivere in un flusso protobuf. |
| WireTypeEndGroup |
Obsoleti.
Classe da scrivere in un flusso protobuf. |
| WireTypeFixed32 |
Obsoleti.
Classe da scrivere in un flusso protobuf. |
| WireTypeFixed64 |
Obsoleti.
Classe da scrivere in un flusso protobuf. |
| WireTypeLengthDelimited |
Obsoleti.
Classe da scrivere in un flusso protobuf. |
| WireTypeMask |
Obsoleti.
Classe da scrivere in un flusso protobuf. |
| WireTypeStartGroup |
Obsoleti.
Classe da scrivere in un flusso protobuf. |
| WireTypeVarint |
Obsoleti.
Classe da scrivere in un flusso protobuf. |
Proprietà
| Nome | Descrizione |
|---|---|
| Class |
Restituisce la classe di runtime di questo |
| Handle |
Handle per l'istanza di Android sottostante. (Ereditato da Object) |
| JniIdentityHashCode |
Ottiene il codice hash di identità assegnato a questo Java peer dal runtime di interoperabilità. (Ereditato da Object) |
| JniManagedPeerState |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| JniPeerMembers |
Classe da scrivere in un flusso protobuf. |
| PeerReference |
Ottiene il riferimento all'oggetto JNI per questo peer Java. (Ereditato da Object) |
| RawSize |
Restituisce le dimensioni totali dei dati scritti, dopo che è stata eseguita la codifica protobuf completa. |
| ThresholdClass |
Questa API supporta l'infrastruttura Mono per Android e non deve essere usata direttamente dal codice. (Ereditato da Object) |
| ThresholdType |
Questa API supporta l'infrastruttura Mono per Android e non deve essere usata direttamente dal codice. (Ereditato da Object) |
Metodi
| Nome | Descrizione |
|---|---|
| CheckFieldId(Int64, Int64) |
Verifica che fieldId specificato sia di tipo e conteggio da expectedType. |
| Clone() |
Crea e restituisce una copia di questo oggetto. (Ereditato da Object) |
| Construct(JniObjectReference, JniObjectReferenceOptions) |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| Dispose() |
Rilascia le risorse contenute in questo peer Java. (Ereditato da Object) |
| Dispose(Boolean) |
Rilascia le risorse contenute in questo peer Java. (Ereditato da Object) |
| DisposeUnlessReferenced() |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| Dump(String) |
Eseguire il dump dei dati di debug sui buffer con il tag di log specificato. |
| End(Int64) |
Terminare l'oggetto avviato da start() che ha restituito il token. |
| Equals(Object) |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| Equals(Object) |
Indica se un altro oggetto è "uguale a" questo. (Ereditato da Object) |
| Flush() |
Scrivere i dati rimanenti nel flusso di output. |
| GetBytes() |
Completare la codifica dei dati e restituire un byte[] con i dati in formato protobuf. |
| GetFieldCountString(Int64) |
Classe da scrivere in un flusso protobuf. |
| GetFieldIdString(Int64) |
Classe da scrivere in un flusso protobuf. |
| GetFieldTypeString(Int64) |
Classe da scrivere in un flusso protobuf. |
| GetHashCode() |
Restituisce un valore di codice hash per l'oggetto . (Ereditato da Object) |
| GetWireTypeString(Int32) |
Classe da scrivere in un flusso protobuf. |
| JavaFinalize() |
Obsoleti.
Chiamato dal Garbage Collector su un oggetto quando Garbage Collection determina che non sono presenti altri riferimenti all'oggetto . (Ereditato da Object) |
| MakeFieldId(Int32, Int64) |
Combinare un fieldId (le chiavi di campo nel file proto) e i flag di campo. |
| MakeToken(Int32, Boolean, Int32, Int32, Int32) |
Classe da scrivere in un flusso protobuf. |
| Notify() |
Riattiva un singolo thread in attesa del monitor dell'oggetto. (Ereditato da Object) |
| NotifyAll() |
Riattiva tutti i thread in attesa del monitor dell'oggetto. (Ereditato da Object) |
| SetHandle(IntPtr, JniHandleOwnership) |
Imposta la proprietà Handle. (Ereditato da Object) |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| Start(Int64) |
Avviare un sottooggetto. |
| ToArray<T>() |
Crea una matrice gestita da questo wrapper di matrice Java. (Ereditato da Object) |
| Token2String(Int64) |
Classe da scrivere in un flusso protobuf. |
| ToString() |
Restituisce una rappresentazione di stringa dell'oggetto . (Ereditato da Object) |
| UnregisterFromRuntime() |
Annulla la registrazione di questo Java peer dal runtime di interoperabilità. (Ereditato da Object) |
| Wait() |
Fa sì che il thread corrente attenda finché non viene risvegliato, in genere ricevendo <>una notifica</em> o <em>interrotto</em>. (Ereditato da Object) |
| Wait(Int64, Int32) |
Fa sì che il thread corrente attenda finché non viene risvegliato, in genere ricevendo<> una notifica</em> o <em>interrotto</em> o fino a quando non è trascorsa una determinata quantità di tempo reale. (Ereditato da Object) |
| Wait(Int64) |
Fa sì che il thread corrente attenda finché non viene risvegliato, in genere ricevendo<> una notifica</em> o <em>interrotto</em> o fino a quando non è trascorsa una determinata quantità di tempo reale. (Ereditato da Object) |
| Write(Int64, Boolean) |
Scrivere un valore booleano per il fieldId specificato. |
| Write(Int64, Byte[]) |
Scrivere un valore byte[] per il fieldId specificato. |
| Write(Int64, Double) |
Scrivere un valore per il fieldId specificato. |
| Write(Int64, Int32) |
Scrivere un valore per il fieldId specificato. |
| Write(Int64, Int64) |
Scrivere un valore per il fieldId specificato. |
| Write(Int64, Single) |
Scrivere un valore per il fieldId specificato. |
| Write(Int64, String) |
Scrivere un valore stringa per il fieldId specificato. |
| WriteTag(Int32, Int32) |
Scrivere un singolo tag di campo a mano. |
Implementazioni dell'interfaccia esplicita
| Nome | Descrizione |
|---|---|
| IJavaPeerable.Disposed() |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| IJavaPeerable.Finalized() |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| IJavaPeerable.JniObjectReferenceControlBlock |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
Classe da scrivere in un flusso protobuf. (Ereditato da JavaObject) |
Metodi di estensione
| Nome | Descrizione |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Ottiene il nome JNI del tipo dell'istanza |
| JavaAs<TResult>(IJavaPeerable) |
Provare a digitare |
| JavaCast<TResult>(IJavaObject) |
Esegue una conversione del tipo di tipo controllato dal runtime Android. |
| JavaCast<TResult>(IJavaObject) |
Classe da scrivere in un flusso protobuf. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Provare a digitare |