iOS Guides | Samples

MonoTouch.Foundation.NSCoder Class

Serialization framework for NSObjects.

See Also: NSCoder

Syntax

[MonoTouch.Foundation.Register("NSCoder", true)]
public class NSCoder : NSObject

Related content

Requirements

Namespace: MonoTouch.Foundation
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.Foundation.NSCoder are listed below.

See Also: NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
A constructor that initializes the object from the data stored in the unarchiver object.
A constructor that initializes the object from the data stored in the unarchiver object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
AllowedClassesNSSet. The current set of coded classes that allow secure coding.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
DecodingFailurePolicyNSDecodingFailurePolicy.
[read-only]
ErrorNSError.
[read-only]
SystemVersionUInt32.

Public Methods

ContainsKey(String) : Boolean
Determines whether an encoded value is available for the specified key.
DecodeBool(String) : Boolean
Decodes the value at the specified key as a bool.
DecodeBytes() : Byte[]
Decodes the next item as an array of bytes.
DecodeBytes(String) : Byte[]
Decodes the requested key as an array of bytes.
DecodeBytes(out UInt32) : IntPtr
Low-level: decodes the next item into a memory block, and returns a pointer to it.
DecodeBytes(String, out UInt32) : IntPtr
Low-level: decodes the item with the associated key into a memory block, and returns a pointer to it.
DecodeDouble(String) : Double
Decodes the value at the specified key as a double.
DecodeFloat(String) : Single
Decodes the value at the specified key as a float.
DecodeInt(String) : Int32
Decodes the value at the specified key as an int.
DecodeLong(String) : Int64
Decodes the value at the specified key as a long.
DecodeObject() : NSObject
Decodes an object that has been encoded with any of the Encode* methods.
DecodeObject(String) : NSObject
DecodeTopLevelObject(out NSError) : NSObject
DecodeTopLevelObject(String, out NSError) : NSObject
DecodeTopLevelObject(NSSet, String, out NSError) : NSObject
DecodeTopLevelObject(Class, String, out NSError) : NSObject
DecodeTopLevelObject(Type, String, out NSError) : NSObject
DecodeTopLevelObject(Type[], String, out NSError) : NSObject
Encode(NSObject)
Encodes the specified object.
Encode(NSObject, String)
Encode(Boolean, String)
Encodes the value using the associated key.
Encode(Byte[], String)
Encodes the byte array using the specified associated key.
Encode(Double, String)
Encodes the double value using the specified associated key.
Encode(Int32, String)
Encodes the integer value using the specified associated key.
Encode(Int64, String)
Encodes the long value using the specified associated key.
Encode(Single, String)
Encodes the floating point value using the specified associated key.
Encode(Byte[], Int32, Int32, String)
Encodes a segment of the buffer using the specified associated key.
EncodeBlock(IntPtr, Int32, String)
Encodes a block of memory of the specified length in bytes.
EncodeConditionalObject(NSObject, String)
When overridden, allows conditional encoding of an object, preserving common references.
EncodeRoot(NSObject)
When overridden, allows a graph of objects to be encoded, starting with the specified root obj.
Fail(NSError)
RequiresSecureCoding() : Boolean
Whether the coder requires secure coding.
TryDecode(String, out NSObject) : Boolean
TryDecode(String, out Boolean) : Boolean
TryDecode(String, out Byte[]) : Boolean
TryDecode(String, out Double) : Boolean
TryDecode(String, out Int32) : Boolean
TryDecode(String, out Int64) : Boolean
TryDecode(String, out Single) : Boolean