[−][src]Trait cocoa::foundation::NSData
Required methods
unsafe fn initWithBase64EncodedData_options_(
self,
base64Data: *mut Object,
options: NSDataBase64DecodingOptions
) -> *mut Object
self,
base64Data: *mut Object,
options: NSDataBase64DecodingOptions
) -> *mut Object
unsafe fn initWithBase64EncodedString_options_(
self,
base64String: *mut Object,
options: NSDataBase64DecodingOptions
) -> *mut Object
self,
base64String: *mut Object,
options: NSDataBase64DecodingOptions
) -> *mut Object
unsafe fn initWithBytes_length_(
self,
bytes: *const c_void,
length: u64
) -> *mut Object
self,
bytes: *const c_void,
length: u64
) -> *mut Object
unsafe fn initWithBytesNoCopy_length_(
self,
bytes: *const c_void,
length: u64
) -> *mut Object
self,
bytes: *const c_void,
length: u64
) -> *mut Object
unsafe fn initWithBytesNoCopy_length_deallocator_(
self,
bytes: *const c_void,
length: u64,
deallocator: *mut Block<(*const c_void, u64), ()>
) -> *mut Object
self,
bytes: *const c_void,
length: u64,
deallocator: *mut Block<(*const c_void, u64), ()>
) -> *mut Object
unsafe fn initWithBytesNoCopy_length_freeWhenDone_(
self,
bytes: *const c_void,
length: u64,
freeWhenDone: i8
) -> *mut Object
self,
bytes: *const c_void,
length: u64,
freeWhenDone: i8
) -> *mut Object
unsafe fn initWithContentsOfFile_(self, path: *mut Object) -> *mut Object
unsafe fn initWithContentsOfFile_options_error(
self,
path: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
self,
path: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
unsafe fn initWithContentsOfURL_(self, aURL: *mut Object) -> *mut Object
unsafe fn initWithContentsOfURL_options_error_(
self,
aURL: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
self,
aURL: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
unsafe fn initWithData_(self, data: *mut Object) -> *mut Object
unsafe fn bytes(self) -> *const c_void
unsafe fn description(self) -> *mut Object
unsafe fn enumerateByteRangesUsingBlock_(
self,
block: *mut Block<(*const c_void, NSRange, *mut i8), ()>
)
self,
block: *mut Block<(*const c_void, NSRange, *mut i8), ()>
)
unsafe fn getBytes_length_(self, buffer: *mut c_void, length: u64)
unsafe fn getBytes_range_(self, buffer: *mut c_void, range: NSRange)
unsafe fn subdataWithRange_(self, range: NSRange) -> *mut Object
unsafe fn rangeOfData_options_range_(
self,
dataToFind: *mut Object,
options: NSDataSearchOptions,
searchRange: NSRange
) -> NSRange
self,
dataToFind: *mut Object,
options: NSDataSearchOptions,
searchRange: NSRange
) -> NSRange
unsafe fn base64EncodedDataWithOptions_(
self,
options: NSDataBase64EncodingOptions
) -> *mut Object
self,
options: NSDataBase64EncodingOptions
) -> *mut Object
unsafe fn base64EncodedStringWithOptions_(
self,
options: NSDataBase64EncodingOptions
) -> *mut Object
self,
options: NSDataBase64EncodingOptions
) -> *mut Object
unsafe fn isEqualToData_(self, otherData: *mut Object) -> *mut Object
unsafe fn length(self) -> u64
unsafe fn writeToFile_atomically_(self, path: *mut Object, atomically: i8) -> i8
unsafe fn writeToFile_options_error_(
self,
path: *mut Object,
mask: NSDataWritingOptions,
errorPtr: *mut *mut Object
) -> i8
self,
path: *mut Object,
mask: NSDataWritingOptions,
errorPtr: *mut *mut Object
) -> i8
unsafe fn writeToURL_atomically_(self, aURL: *mut Object, atomically: i8) -> i8
unsafe fn writeToURL_options_error_(
self,
aURL: *mut Object,
mask: NSDataWritingOptions,
errorPtr: *mut *mut Object
) -> i8
self,
aURL: *mut Object,
mask: NSDataWritingOptions,
errorPtr: *mut *mut Object
) -> i8
Provided methods
unsafe fn data(Self) -> *mut Object
unsafe fn dataWithBytes_length_(
Self,
bytes: *const c_void,
length: u64
) -> *mut Object
Self,
bytes: *const c_void,
length: u64
) -> *mut Object
unsafe fn dataWithBytesNoCopy_length_(
Self,
bytes: *const c_void,
length: u64
) -> *mut Object
Self,
bytes: *const c_void,
length: u64
) -> *mut Object
unsafe fn dataWithBytesNoCopy_length_freeWhenDone_(
Self,
bytes: *const c_void,
length: u64,
freeWhenDone: i8
) -> *mut Object
Self,
bytes: *const c_void,
length: u64,
freeWhenDone: i8
) -> *mut Object
unsafe fn dataWithContentsOfFile_(Self, path: *mut Object) -> *mut Object
unsafe fn dataWithContentsOfFile_options_error_(
Self,
path: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
Self,
path: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
unsafe fn dataWithContentsOfURL_(Self, aURL: *mut Object) -> *mut Object
unsafe fn dataWithContentsOfURL_options_error_(
Self,
aURL: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
Self,
aURL: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
unsafe fn dataWithData_(Self, aData: *mut Object) -> *mut Object
Implementations on Foreign Types
impl NSData for *mut Object[src]
unsafe fn initWithBase64EncodedData_options_(
self,
base64Data: *mut Object,
options: NSDataBase64DecodingOptions
) -> *mut Object[src]
self,
base64Data: *mut Object,
options: NSDataBase64DecodingOptions
) -> *mut Object
unsafe fn initWithBase64EncodedString_options_(
self,
base64String: *mut Object,
options: NSDataBase64DecodingOptions
) -> *mut Object[src]
self,
base64String: *mut Object,
options: NSDataBase64DecodingOptions
) -> *mut Object
unsafe fn initWithBytes_length_(
self,
bytes: *const c_void,
length: u64
) -> *mut Object[src]
self,
bytes: *const c_void,
length: u64
) -> *mut Object
unsafe fn initWithBytesNoCopy_length_(
self,
bytes: *const c_void,
length: u64
) -> *mut Object[src]
self,
bytes: *const c_void,
length: u64
) -> *mut Object
unsafe fn initWithBytesNoCopy_length_deallocator_(
self,
bytes: *const c_void,
length: u64,
deallocator: *mut Block<(*const c_void, u64), ()>
) -> *mut Object[src]
self,
bytes: *const c_void,
length: u64,
deallocator: *mut Block<(*const c_void, u64), ()>
) -> *mut Object
unsafe fn initWithBytesNoCopy_length_freeWhenDone_(
self,
bytes: *const c_void,
length: u64,
freeWhenDone: i8
) -> *mut Object[src]
self,
bytes: *const c_void,
length: u64,
freeWhenDone: i8
) -> *mut Object
unsafe fn initWithContentsOfFile_(self, path: *mut Object) -> *mut Object[src]
unsafe fn initWithContentsOfFile_options_error(
self,
path: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object[src]
self,
path: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
unsafe fn initWithContentsOfURL_(self, aURL: *mut Object) -> *mut Object[src]
unsafe fn initWithContentsOfURL_options_error_(
self,
aURL: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object[src]
self,
aURL: *mut Object,
mask: NSDataReadingOptions,
errorPtr: *mut *mut Object
) -> *mut Object
unsafe fn initWithData_(self, data: *mut Object) -> *mut Object[src]
unsafe fn bytes(self) -> *const c_void[src]
unsafe fn description(self) -> *mut Object[src]
unsafe fn enumerateByteRangesUsingBlock_(
self,
block: *mut Block<(*const c_void, NSRange, *mut i8), ()>
)[src]
self,
block: *mut Block<(*const c_void, NSRange, *mut i8), ()>
)
unsafe fn getBytes_length_(self, buffer: *mut c_void, length: u64)[src]
unsafe fn getBytes_range_(self, buffer: *mut c_void, range: NSRange)[src]
unsafe fn subdataWithRange_(self, range: NSRange) -> *mut Object[src]
unsafe fn rangeOfData_options_range_(
self,
dataToFind: *mut Object,
options: NSDataSearchOptions,
searchRange: NSRange
) -> NSRange[src]
self,
dataToFind: *mut Object,
options: NSDataSearchOptions,
searchRange: NSRange
) -> NSRange
unsafe fn base64EncodedDataWithOptions_(
self,
options: NSDataBase64EncodingOptions
) -> *mut Object[src]
self,
options: NSDataBase64EncodingOptions
) -> *mut Object
unsafe fn base64EncodedStringWithOptions_(
self,
options: NSDataBase64EncodingOptions
) -> *mut Object[src]
self,
options: NSDataBase64EncodingOptions
) -> *mut Object
unsafe fn isEqualToData_(self, otherData: *mut Object) -> *mut Object[src]
unsafe fn length(self) -> u64[src]
unsafe fn writeToFile_atomically_(self, path: *mut Object, atomically: i8) -> i8[src]
unsafe fn writeToFile_options_error_(
self,
path: *mut Object,
mask: NSDataWritingOptions,
errorPtr: *mut *mut Object
) -> i8[src]
self,
path: *mut Object,
mask: NSDataWritingOptions,
errorPtr: *mut *mut Object
) -> i8
unsafe fn writeToURL_atomically_(self, aURL: *mut Object, atomically: i8) -> i8[src]
unsafe fn writeToURL_options_error_(
self,
aURL: *mut Object,
mask: NSDataWritingOptions,
errorPtr: *mut *mut Object
) -> i8[src]
self,
aURL: *mut Object,
mask: NSDataWritingOptions,
errorPtr: *mut *mut Object
) -> i8