C# 클래스 Monobjc.Foundation.NSData

파일 보기 프로젝트 열기: Monobjc/monobjc 1 사용 예제들

공개 메소드들

메소드 설명
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