Add CFStringCreateWithCharactersNoCopy

This commit is contained in:
Makoto Kato
2021-01-26 13:59:23 +09:00
parent 48dd601e3c
commit 2fe22f8c98
+5 -1
View File
@@ -219,7 +219,11 @@ extern {
contentsDeallocator: CFAllocatorRef)
-> CFStringRef;
//fn CFStringCreateWithCharacters
//fn CFStringCreateWithCharactersNoCopy
pub fn CFStringCreateWithCharactersNoCopy(alloc: CFAllocatorRef,
chars: *const UniChar,
numChars: CFIndex,
contentsDeallocator: CFAllocatorRef)
-> CFStringRef;
pub fn CFStringCreateWithCString(alloc: CFAllocatorRef,
cStr: *const c_char,
encoding: CFStringEncoding)