NSCoder.DecodeBytes Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| DecodeBytes() |
Décode l’élément suivant sous la forme d’un tableau d’octets. |
| DecodeBytes(String) |
Décode la clé demandée sous la forme d’un tableau d’octets. |
| DecodeBytes(UIntPtr) | |
| DecodeBytes(UIntPtr) |
Bas niveau : décode l’élément suivant dans un bloc de mémoire et retourne un pointeur vers celui-ci. |
| DecodeBytes(String, UIntPtr) | |
| DecodeBytes(String, UIntPtr) |
Bas niveau : décode l’élément avec la clé associée dans un bloc de mémoire et retourne un pointeur vers celui-ci. |
DecodeBytes()
Décode l’élément suivant sous la forme d’un tableau d’octets.
public byte[] DecodeBytes();
public byte[]? DecodeBytes();
member this.DecodeBytes : unit -> byte[]
Retours
Tableau d’octets décodés à partir du flux.
Remarques
Tableau décodé d’octets.
S’applique à
DecodeBytes(String)
DecodeBytes(UIntPtr)
[Foundation.Export("decodeBytesWithMinimumLength:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr DecodeBytes(UIntPtr minimumLength);
[<Foundation.Export("decodeBytesWithMinimumLength:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DecodeBytes : unativeint -> nativeint
override this.DecodeBytes : unativeint -> nativeint
Paramètres
- minimumLength
-
UIntPtr
unativeint
Retours
nativeint
- Attributs
S’applique à
DecodeBytes(UIntPtr)
Bas niveau : décode l’élément suivant dans un bloc de mémoire et retourne un pointeur vers celui-ci.
[Foundation.Export("decodeBytesWithReturnedLength:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr DecodeBytes(out UIntPtr length);
[<Foundation.Export("decodeBytesWithReturnedLength:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DecodeBytes : unativeint -> nativeint
override this.DecodeBytes : unativeint -> nativeint
Paramètres
- length
-
UIntPtr
unativeint
Nombre d’octets dans le bloc retourné.
Retours
nativeint
Pointeur vers le bloc de mémoire qui contient au moins le nombre d’octets définis sur le paramètre de longueur.
- Attributs
S’applique à
DecodeBytes(String, UIntPtr)
[Foundation.Export("decodeBytesForKey:minimumLength:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr DecodeBytes(string key, UIntPtr minimumLength);
[<Foundation.Export("decodeBytesForKey:minimumLength:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DecodeBytes : string * unativeint -> nativeint
override this.DecodeBytes : string * unativeint -> nativeint
Paramètres
- key
- String
- minimumLength
-
UIntPtr
unativeint
Retours
nativeint
- Attributs
S’applique à
DecodeBytes(String, UIntPtr)
Bas niveau : décode l’élément avec la clé associée dans un bloc de mémoire et retourne un pointeur vers celui-ci.
[Foundation.Export("decodeBytesForKey:returnedLength:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr DecodeBytes(string key, out UIntPtr length);
[<Foundation.Export("decodeBytesForKey:returnedLength:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DecodeBytes : string * unativeint -> nativeint
override this.DecodeBytes : string * unativeint -> nativeint
Paramètres
- key
- String
Clé identifiant l’élément à décoder.
- length
-
UIntPtr
unativeint
Nombre d’octets dans le bloc retourné.
Retours
nativeint
Pointeur vers le bloc de mémoire qui contient au moins le nombre d’octets définis sur le paramètre de longueur.
- Attributs