Created
August 27, 2012 17:56
-
-
Save bzgeb/3490847 to your computer and use it in GitHub Desktop.
An example wrapper function for PdBase called by Unity3D
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void _sendSymbolToReceiver(char * symbol, int symLength, char * receiver, int recLength) | |
{ | |
NSString * _receiver = [[NSString alloc] initWithData:[NSData dataWithBytes:receiver length:recLength] encoding:NSUTF16LittleEndianStringEncoding]; | |
NSString * _symbol = [[NSString alloc] initWithData:[NSData dataWithBytes:symbol length:symLength] encoding:NSUTF16LittleEndianStringEncoding]; | |
[PdBase sendSymbol:_symbol toReceiver:_receiver]; | |
[_symbol release]; | |
[_receiver release]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment