pub trait NSData: Sized {
Show 35 methods // Required methods unsafe fn initWithBase64EncodedData_options_( self, base64Data: id, options: NSDataBase64DecodingOptions ) -> id; unsafe fn initWithBase64EncodedString_options_( self, base64String: id, options: NSDataBase64DecodingOptions ) -> id; unsafe fn initWithBytes_length_( self, bytes: *const c_void, length: NSUInteger ) -> id; unsafe fn initWithBytesNoCopy_length_( self, bytes: *const c_void, length: NSUInteger ) -> id; unsafe fn initWithBytesNoCopy_length_deallocator_( self, bytes: *const c_void, length: NSUInteger, deallocator: *mut Block<(*const c_void, NSUInteger), ()> ) -> id; unsafe fn initWithBytesNoCopy_length_freeWhenDone_( self, bytes: *const c_void, length: NSUInteger, freeWhenDone: BOOL ) -> id; unsafe fn initWithContentsOfFile_(self, path: id) -> id; unsafe fn initWithContentsOfFile_options_error( self, path: id, mask: NSDataReadingOptions, errorPtr: *mut id ) -> id; unsafe fn initWithContentsOfURL_(self, aURL: id) -> id; unsafe fn initWithContentsOfURL_options_error_( self, aURL: id, mask: NSDataReadingOptions, errorPtr: *mut id ) -> id; unsafe fn initWithData_(self, data: id) -> id; unsafe fn bytes(self) -> *const c_void; unsafe fn description(self) -> id; unsafe fn enumerateByteRangesUsingBlock_( self, block: *mut Block<(*const c_void, NSRange, *mut BOOL), ()> ); unsafe fn getBytes_length_(self, buffer: *mut c_void, length: NSUInteger); unsafe fn getBytes_range_(self, buffer: *mut c_void, range: NSRange); unsafe fn subdataWithRange_(self, range: NSRange) -> id; unsafe fn rangeOfData_options_range_( self, dataToFind: id, options: NSDataSearchOptions, searchRange: NSRange ) -> NSRange; unsafe fn base64EncodedDataWithOptions_( self, options: NSDataBase64EncodingOptions ) -> id; unsafe fn base64EncodedStringWithOptions_( self, options: NSDataBase64EncodingOptions ) -> id; unsafe fn isEqualToData_(self, otherData: id) -> id; unsafe fn length(self) -> NSUInteger; unsafe fn writeToFile_atomically_(self, path: id, atomically: BOOL) -> BOOL; unsafe fn writeToFile_options_error_( self, path: id, mask: NSDataWritingOptions, errorPtr: *mut id ) -> BOOL; unsafe fn writeToURL_atomically_(self, aURL: id, atomically: BOOL) -> BOOL; unsafe fn writeToURL_options_error_( self, aURL: id, mask: NSDataWritingOptions, errorPtr: *mut id ) -> BOOL; // Provided methods unsafe fn data(_: Self) -> id { ... } unsafe fn dataWithBytes_length_( _: Self, bytes: *const c_void, length: NSUInteger ) -> id { ... } unsafe fn dataWithBytesNoCopy_length_( _: Self, bytes: *const c_void, length: NSUInteger ) -> id { ... } unsafe fn dataWithBytesNoCopy_length_freeWhenDone_( _: Self, bytes: *const c_void, length: NSUInteger, freeWhenDone: BOOL ) -> id { ... } unsafe fn dataWithContentsOfFile_(_: Self, path: id) -> id { ... } unsafe fn dataWithContentsOfFile_options_error_( _: Self, path: id, mask: NSDataReadingOptions, errorPtr: *mut id ) -> id { ... } unsafe fn dataWithContentsOfURL_(_: Self, aURL: id) -> id { ... } unsafe fn dataWithContentsOfURL_options_error_( _: Self, aURL: id, mask: NSDataReadingOptions, errorPtr: *mut id ) -> id { ... } unsafe fn dataWithData_(_: Self, aData: id) -> id { ... }
}

Required Methods§

source

unsafe fn initWithBase64EncodedData_options_( self, base64Data: id, options: NSDataBase64DecodingOptions ) -> id

source

unsafe fn initWithBase64EncodedString_options_( self, base64String: id, options: NSDataBase64DecodingOptions ) -> id

source

unsafe fn initWithBytes_length_( self, bytes: *const c_void, length: NSUInteger ) -> id

source

unsafe fn initWithBytesNoCopy_length_( self, bytes: *const c_void, length: NSUInteger ) -> id

source

unsafe fn initWithBytesNoCopy_length_deallocator_( self, bytes: *const c_void, length: NSUInteger, deallocator: *mut Block<(*const c_void, NSUInteger), ()> ) -> id

source

unsafe fn initWithBytesNoCopy_length_freeWhenDone_( self, bytes: *const c_void, length: NSUInteger, freeWhenDone: BOOL ) -> id

source

unsafe fn initWithContentsOfFile_(self, path: id) -> id

source

unsafe fn initWithContentsOfFile_options_error( self, path: id, mask: NSDataReadingOptions, errorPtr: *mut id ) -> id

source

unsafe fn initWithContentsOfURL_(self, aURL: id) -> id

source

unsafe fn initWithContentsOfURL_options_error_( self, aURL: id, mask: NSDataReadingOptions, errorPtr: *mut id ) -> id

source

unsafe fn initWithData_(self, data: id) -> id

source

unsafe fn bytes(self) -> *const c_void

source

unsafe fn description(self) -> id

source

unsafe fn enumerateByteRangesUsingBlock_( self, block: *mut Block<(*const c_void, NSRange, *mut BOOL), ()> )

source

unsafe fn getBytes_length_(self, buffer: *mut c_void, length: NSUInteger)

source

unsafe fn getBytes_range_(self, buffer: *mut c_void, range: NSRange)

source

unsafe fn subdataWithRange_(self, range: NSRange) -> id

source

unsafe fn rangeOfData_options_range_( self, dataToFind: id, options: NSDataSearchOptions, searchRange: NSRange ) -> NSRange

source

unsafe fn base64EncodedDataWithOptions_( self, options: NSDataBase64EncodingOptions ) -> id

source

unsafe fn base64EncodedStringWithOptions_( self, options: NSDataBase64EncodingOptions ) -> id

source

unsafe fn isEqualToData_(self, otherData: id) -> id

source

unsafe fn length(self) -> NSUInteger

source

unsafe fn writeToFile_atomically_(self, path: id, atomically: BOOL) -> BOOL

source

unsafe fn writeToFile_options_error_( self, path: id, mask: NSDataWritingOptions, errorPtr: *mut id ) -> BOOL

source

unsafe fn writeToURL_atomically_(self, aURL: id, atomically: BOOL) -> BOOL

source

unsafe fn writeToURL_options_error_( self, aURL: id, mask: NSDataWritingOptions, errorPtr: *mut id ) -> BOOL

Provided Methods§

source

unsafe fn data(_: Self) -> id

source

unsafe fn dataWithBytes_length_( _: Self, bytes: *const c_void, length: NSUInteger ) -> id

source

unsafe fn dataWithBytesNoCopy_length_( _: Self, bytes: *const c_void, length: NSUInteger ) -> id

source

unsafe fn dataWithBytesNoCopy_length_freeWhenDone_( _: Self, bytes: *const c_void, length: NSUInteger, freeWhenDone: BOOL ) -> id

source

unsafe fn dataWithContentsOfFile_(_: Self, path: id) -> id

source

unsafe fn dataWithContentsOfFile_options_error_( _: Self, path: id, mask: NSDataReadingOptions, errorPtr: *mut id ) -> id

source

unsafe fn dataWithContentsOfURL_(_: Self, aURL: id) -> id

source

unsafe fn dataWithContentsOfURL_options_error_( _: Self, aURL: id, mask: NSDataReadingOptions, errorPtr: *mut id ) -> id

source

unsafe fn dataWithData_(_: Self, aData: id) -> id

Implementors§