Skip to content

Instantly share code, notes, and snippets.

@bzgeb
Created August 27, 2012 17:56
Show Gist options
  • Save bzgeb/3490847 to your computer and use it in GitHub Desktop.
Save bzgeb/3490847 to your computer and use it in GitHub Desktop.
An example wrapper function for PdBase called by Unity3D
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