Modifica

Condividi tramite


NSCoder.DecodeBytes Method

Definition

Overloads

DecodeBytes()

Decodes the next item as an array of bytes.

DecodeBytes(nuint)

Low-level: decodes the next item into a memory block, and returns a pointer to it.

DecodeBytes(String)

Decodes the requested key as an array of bytes.

DecodeBytes(String, nuint)

Low-level: decodes the item with the associated key into a memory block, and returns a pointer to it.

DecodeBytes()

Decodes the next item as an array of bytes.

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

Returns

Byte[]

The array of bytes decoded from the stream.

Applies to

DecodeBytes(nuint)

Low-level: decodes the next item into a memory block, and returns a pointer to it.

[Foundation.Export("decodeBytesWithReturnedLength:")]
public virtual IntPtr DecodeBytes (out nuint length);
abstract member DecodeBytes :  -> nativeint
override this.DecodeBytes :  -> nativeint

Parameters

length
System.System.UIntPtr System.unativeint

Number of bytes in the returned block.

Returns

IntPtr

nativeint

Pointer to the block of memory that contains at least the number of bytes set on the lenght parameter.

Attributes

Applies to

DecodeBytes(String)

Decodes the requested key as an array of bytes.

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

Parameters

key
String

The key identifying the item to decode.

Returns

Byte[]

Applies to

DecodeBytes(String, nuint)

Low-level: decodes the item with the associated key into a memory block, and returns a pointer to it.

[Foundation.Export("decodeBytesForKey:returnedLength:")]
public virtual IntPtr DecodeBytes (string key, out nuint length);
abstract member DecodeBytes : string *  -> nativeint
override this.DecodeBytes : string *  -> nativeint

Parameters

key
String

The key identifying the item to decode.

length
System.System.UIntPtr System.unativeint

Number of bytes in the returned block.

Returns

IntPtr

nativeint

Pointer to the block of memory that contains at least the number of bytes set on the lenght parameter.

Attributes

Applies to