C# Класс Monobjc.Foundation.NSData

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

DataFromBytes() публичный статический Метод

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.
Результат NSData

DataFromBytes() публичный статический Метод

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.
Результат NSData

DataFromResource() публичный статический Метод

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.
Результат NSData

DataFromStream() публичный статический Метод

Create a NSData from a stream.
public static DataFromStream ( Stream stream ) : NSData
stream Stream The stream.
Результат NSData

DecryptData() публичный статический Метод

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.
Результат NSData

GetBuffer() публичный Метод

Gets a managed byte buffer from this instance.
public GetBuffer ( ) : byte[]
Результат byte[]

NSData() публичный Метод

Initializes a new instance of the NSData class.
public NSData ( byte bytes ) : System
bytes byte The bytes.
Результат System

NSData() публичный Метод

Initializes a new instance of the NSData class.
public NSData ( byte bytes, NSUInteger length ) : System
bytes byte The bytes.
length NSUInteger The length.
Результат System

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( ) : String
Результат String