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
| Name | Description |
|---|---|
| DecodeBytes() |
Decodes the next item as an array of bytes. |
| DecodeBytes(String) |
Decodes the requested key as an array of bytes. |
| DecodeBytes(UIntPtr) | |
| DecodeBytes(UIntPtr) |
Low-level: decodes the next item into a memory block, and returns a pointer to it. |
| DecodeBytes(String, UIntPtr) | |
| DecodeBytes(String, UIntPtr) |
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.
Remarks
The decoded array of bytes.
Applies to
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
Parameters
- minimumLength
-
UIntPtr
unativeint
Returns
nativeint
- Attributes
Applies to
DecodeBytes(UIntPtr)
Low-level: decodes the next item into a memory block, and returns a pointer to it.
[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
Parameters
- length
-
UIntPtr
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, 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
Parameters
- key
- String
- minimumLength
-
UIntPtr
unativeint
Returns
nativeint
- Attributes
Applies to
DecodeBytes(String, UIntPtr)
Low-level: decodes the item with the associated key into a memory block, and returns a pointer to it.
[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
Parameters
- key
- String
The key identifying the item to decode.
- length
-
UIntPtr
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