語言

NSCoder.DecodeBytes 方法

定義

多載

名稱 Description
DecodeBytes()

將下一個項目解碼為一個位元組陣列。

DecodeBytes(String)

將請求的金鑰解碼為一個位元組陣列。

DecodeBytes(UIntPtr)
DecodeBytes(UIntPtr)

低階:將下一個項目解碼成記憶體區塊,並回傳指向該項目的指標。

DecodeBytes(String, UIntPtr)
DecodeBytes(String, UIntPtr)

低階:將帶有相關金鑰的項目解碼成記憶體區塊,並回傳指向該區塊的指標。

DecodeBytes()

將下一個項目解碼為一個位元組陣列。

public byte[] DecodeBytes();
public byte[]? DecodeBytes();
member this.DecodeBytes : unit -> byte[]

傳回

Byte[]

從串流解碼出的位元組陣列。

備註

解碼後的位元組陣列。

適用於

DecodeBytes(String)

將請求的金鑰解碼為一個位元組陣列。

public byte[] DecodeBytes(string key);
public byte[]? DecodeBytes(string key);
member this.DecodeBytes : string -> byte[]

參數

key
String

識別要解碼物品的鑰匙。

傳回

Byte[]

解碼後的位元組陣列。

適用於

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

參數

minimumLength
UIntPtr

unativeint

傳回

IntPtr

nativeint

屬性

適用於

DecodeBytes(UIntPtr)

低階:將下一個項目解碼成記憶體區塊,並回傳指向該項目的指標。

[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

參數

length
UIntPtr

unativeint

回傳區塊中的位元組數。

傳回

IntPtr

nativeint

指標指向至少包含長度參數設定位元組數的記憶體區塊。

屬性

適用於

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

參數

key
String
minimumLength
UIntPtr

unativeint

傳回

IntPtr

nativeint

屬性

適用於

DecodeBytes(String, UIntPtr)

低階:將帶有相關金鑰的項目解碼成記憶體區塊,並回傳指向該區塊的指標。

[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

參數

key
String

識別要解碼物品的鑰匙。

length
UIntPtr

unativeint

回傳區塊中的位元組數。

傳回

IntPtr

nativeint

指標指向至少包含長度參數設定位元組數的記憶體區塊。

屬性

適用於