discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I make a NSString from a buffer?


From: Peter Karlsson
Subject: How do I make a NSString from a buffer?
Date: Mon, 14 Apr 2003 11:06:46 +0000

Dear list!

I allocate a memory buffer like this:

int len;
len = [myData length];
unsigned char *aBuffer;
aBuffer = malloc(len);

This buffer is 1000 bytes in length. I want to make a NSString with the contents of the first 6 bytes in aBuffer. How do I do that?

Peter




_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail





reply via email to

[Prev in Thread] Current Thread [Next in Thread]