MonoMac.Foundation.NSData Members

The members of MonoMac.Foundation.NSData are listed below.

See Also: Inherited members from MonoMac.Foundation.NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes when the derived class has an [Export] constructor.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
BytesIntPtr. Returns a pointer to the data held by this NSData.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
default property
Item(int)byte. Retrieves the byte at the specified position in the NSData object.
Lengthuint. The size of the contents wrapped by this NSData.

Public Methods

_Save(NSUrl, int, IntPtr) : bool
Documentation for this section has not yet been entered.
_Save(string, int, IntPtr) : bool
Documentation for this section has not yet been entered.
AsStream() : System.IO.Stream
Wraps the NSData into System.IO.Stream
Find(NSData, NSDataSearchOptions, NSRange) : NSRange
Looks for the dataToFind in this NSData, based on the specified searchOptions in the specified range.
static
FromArray(byte[]) : NSData
Creates an NSData that wraps a managed C# byte array.
static
FromBytes(IntPtr, uint) : NSData
Creates an NSData from an in-memory block by specifying its address and length.
static
FromData(NSData) : NSData
Documentation for this section has not yet been entered.
static
FromFile(string) : NSData
Creates an NSData by loading the contents of the specified file into memory.
static
FromFile(string, NSDataReadingOptions, out NSError) : NSData
Creates an NSData by loading the contents of the specified file into memory.
static
FromStream(System.IO.Stream) : NSData
Creates an NSData by loading the contents of the provided stream.
static
FromString(string) : NSData
Creates an NSData for a C# string, the string is encoded in UTF8.
static
FromString(string, NSStringEncoding) : NSData
Creates an NSData for a C# string, the string is encoded using the specified encoding.
static
FromUrl(NSUrl) : NSData
Cretes an NSData with the contents in the specified url.
static
FromUrl(NSUrl, NSDataReadingOptions, out NSError) : NSData
Cretes an NSData with the contents in the specified url.
Save(NSUrl, bool, out NSError) : bool
Documentation for this section has not yet been entered.
Save(string, NSDataWritingOptions, out NSError) : bool
Documentation for this section has not yet been entered.
Save(string, bool, out NSError) : bool
Documentation for this section has not yet been entered.
override
ToString() : string
Returns a string representation of the value of the current instance.
ToString(NSStringEncoding) : NSString
Returns a string representation of the value of the current instance.

Public Operators

static
Conversion to MonoMac.Foundation.NSData(Implicit)Implicit conversion from string to an NSData encoded as UTF8.

Explicitly Implemented Interface Members

IEnumerable<byte>.GetEnumeratorEnumerator for the NSDatac contents.
IEnumerable.GetEnumeratorEnumerator for the NSDatac contents.