• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading from an NSInputStream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading from an NSInputStream


  • Subject: Re: Reading from an NSInputStream
  • From: p3consulting <email@hidden>
  • Date: Sun, 23 Nov 2003 10:31:18 +0100

uint8_t *buf;
unsigned int *numBytes;
[stream getBuffer:&buf length:numBytes];
for (int i = 0; i < *numBytes; i++) {
printf("%c", buf[i]);
}
}
}


Should be

uint8_t *buf;
unsigned int numBytes;

[stream getBuffer:&buf length:&numBytes];
for (int i = 0; i < numBytes; i++) {

Pascal Pochet
P3 Consulting
email@hidden
http://www.p3-consulting.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: AppleScript Integration
  • Next by Date: Re: dealloc and instance variables
  • Previous by thread: Re: Reading from an NSInputStream
  • Next by thread: AppleScript Integration
  • Index(es):
    • Date
    • Thread