C# Class Monobjc.Foundation.NSData

Show file Open project: Monobjc/monobjc Class Usage Examples

Public Methods

Method Description
DataFromBytes ( byte bytes ) : NSData

Creates and returns a data object containing a given number of bytes copied from a given buffer.

Original signature is '+ (id)dataWithBytes:(const void *)bytes length:(NSUInteger)length'

Available in OS X v10.0 and later.

DataFromBytes ( byte bytes, NSUInteger length ) : NSData

Creates and returns a data object containing a given number of bytes copied from a given buffer.

Original signature is '+ (id)dataWithBytes:(const void *)bytes length:(NSUInteger)length'

Available in OS X v10.0 and later.

DataFromResource ( Type type, String resourceName ) : NSData

Create a NSData from a manifest resource stream.

DataFromStream ( Stream stream ) : NSData

Create a NSData from a stream.

DecryptData ( NSData encryptedData, NSString encryptionSeed ) : NSData

Decrypts the given data by using the ArtworkEncrypter tool.

GetBuffer ( ) : byte[]

Gets a managed byte buffer from this instance.

NSData ( byte bytes ) : System

Initializes a new instance of the NSData class.

NSData ( byte bytes, NSUInteger length ) : System

Initializes a new instance of the NSData class.

ToString ( ) : String

Returns a System.String that represents this instance.

Method Details

DataFromBytes() public static method

Creates and returns a data object containing a given number of bytes copied from a given buffer.

Original signature is '+ (id)dataWithBytes:(const void *)bytes length:(NSUInteger)length'

Available in OS X v10.0 and later.

public static DataFromBytes ( byte bytes ) : NSData
bytes byte A buffer containing data for the new object.
return NSData

DataFromBytes() public static method

Creates and returns a data object containing a given number of bytes copied from a given buffer.

Original signature is '+ (id)dataWithBytes:(const void *)bytes length:(NSUInteger)length'

Available in OS X v10.0 and later.

public static DataFromBytes ( byte bytes, NSUInteger length ) : NSData
bytes byte A buffer containing data for the new object.
length NSUInteger The number of bytes to copy from bytes. This value must not exceed the length of bytes.
return NSData

DataFromResource() public static method

Create a NSData from a manifest resource stream.
public static DataFromResource ( Type type, String resourceName ) : NSData
type System.Type The type whose assembly contains the manifest resource.
resourceName String Name of the resource.
return NSData

DataFromStream() public static method

Create a NSData from a stream.
public static DataFromStream ( Stream stream ) : NSData
stream Stream The stream.
return NSData

DecryptData() public static method

Decrypts the given data by using the ArtworkEncrypter tool.
public static DecryptData ( NSData encryptedData, NSString encryptionSeed ) : NSData
encryptedData NSData The encrypted artwork data.
encryptionSeed NSString The encryption seed to use.
return NSData

GetBuffer() public method

Gets a managed byte buffer from this instance.
public GetBuffer ( ) : byte[]
return byte[]

NSData() public method

Initializes a new instance of the NSData class.
public NSData ( byte bytes ) : System
bytes byte The bytes.
return System

NSData() public method

Initializes a new instance of the NSData class.
public NSData ( byte bytes, NSUInteger length ) : System
bytes byte The bytes.
length NSUInteger The length.
return System

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : String
return String