NSCoder.DecodeBytes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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)
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
nativeint
Pointer to the block of memory that contains at least the number of bytes set on the lenght parameter.
- Attributes