语言

NSCoder.DecodeBytes 方法

定义

重载

名称 说明
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

指向至少在长度参数上设置的字节数的内存块的指针。

特性

适用于