Skip to content

Commit 3f007d1

Browse files
authored
Auto merge of #437 - makotokato:CFStringCreateWithCharactersNoCopy, r=jrmuizel
Add CFStringCreateWithCharactersNoCopy
2 parents 48dd601 + 2fe22f8 commit 3f007d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core-foundation-sys/src/string.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,11 @@ extern {
219219
contentsDeallocator: CFAllocatorRef)
220220
-> CFStringRef;
221221
//fn CFStringCreateWithCharacters
222-
//fn CFStringCreateWithCharactersNoCopy
222+
pub fn CFStringCreateWithCharactersNoCopy(alloc: CFAllocatorRef,
223+
chars: *const UniChar,
224+
numChars: CFIndex,
225+
contentsDeallocator: CFAllocatorRef)
226+
-> CFStringRef;
223227
pub fn CFStringCreateWithCString(alloc: CFAllocatorRef,
224228
cStr: *const c_char,
225229
encoding: CFStringEncoding)

0 commit comments

Comments
 (0)