spidermonkey - What is NSString internally? -
can assign char* or wchar_t* nsstring , avoid copying how?
i need pass unicode (utf16 le) string spidermonkey uiview subclass, , goal avoid copying if possible, or @ least avoid intermediate conversion utf8.
thank you.
see - (instancetype)initwithbytesnocopy:(void *)bytes length:(nsuinteger)length encoding:(nsstringencoding)encoding freewhendone:(bool)flag
method of nsstring class.
Comments
Post a Comment