Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dnssd_NET.cpp: DNSService::Register should accept a byte array of size 0



Hi,

DNSService::Register currently assumes that the caller will either pass NULL
or a non-empty byte array as txtRecord.
It throws index out of range exception if 0-sized array is passed.

I think, for consistency reasons, array of size 0 should be a valid input
and mean the same thing as passing NULL.
Actually, I prefer not using nulls at all when I deal with .NET strings and
arrays. Eliminates special cases.

--
Pavel
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.