C# Class Monobjc.Foundation.NSData

Afficher le fichier Open project: Monobjc/monobjc Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat NSData

DataFromBytes() public static méthode

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.
Résultat NSData

DataFromResource() public static méthode

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.
Résultat NSData

DataFromStream() public static méthode

Create a NSData from a stream.
public static DataFromStream ( Stream stream ) : NSData
stream Stream The stream.
Résultat NSData

DecryptData() public static méthode

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.
Résultat NSData

GetBuffer() public méthode

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

NSData() public méthode

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

NSData() public méthode

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

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : String
Résultat String