• 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
Writing 0 bytes to a CFWriteStream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Writing 0 bytes to a CFWriteStream


  • Subject: Writing 0 bytes to a CFWriteStream
  • From: Frederick Cheung <email@hidden>
  • Date: Wed, 17 Nov 2004 18:44:58 +0000

It has been suggested that I ask this here, rather than on carbon-dev, anyway here I go:
I've just noticed that attempting to write 0 bytes to a CFWriteStream (in my case a file stream, i haven't tried other kinds) marks the stream as being at the end (thus causing later writes to fail). This may seem like a rather odd thing to do, In my case i had just received the body of a http request (via CFHTTPMessageCopyBody) and was just blindly writing out the contents of the CFData that returned, which in some circumstances could be no data at all.


Anyway, this doesn't seem to be documented, is it normal? Either way it's not hugely important, but if it had been documented it would have saved me non trivial amounts of banging head against desk.

Fred

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Writing 0 bytes to a CFWriteStream
      • From: Jeremy Wyld <email@hidden>
  • Prev by Date: Re: CFHTTP and cookies?
  • Next by Date: Re: Writing 0 bytes to a CFWriteStream
  • Previous by thread: Re: CFHTTP and cookies?
  • Next by thread: Re: Writing 0 bytes to a CFWriteStream
  • Index(es):
    • Date
    • Thread