In regard to the new irp offset and length settings, I was orignally 
thinking that the default settings should be the most common - I'm always 
for that.  For the offset, the most common setting is 0, so that's ok, but 
for the length, the most common setting will be the data.length.  So, I 
was thinking about a couple situations:

1.during setData(), if (0 == getLength()), setLength(getData().length)
2.during setData(), setLength(getData().length)
3.never touch length, let user do it

#1 is nice, as it will automatically set the length if it's not set 
(assuming 0-length means not set), but it's not obviously consistent - if 
you call setData() twice, the length won't be updated for the second 
setData().

#2 is more consistent, but it can clobber your length setting.  So if you 
setLength() then setData(), your length will be reset to data.length.  Not 
good...

#3 is the easiest (for the implementation) and most consistent, but 
requires more work in the most common case.

right now in CVS, #3 is what's there.  However, #1 may be better.  Anyone 
like #1 (or #2) better than #3?  Or have another suggestion?

Thanks.

-- 
Dan Streetman
[EMAIL PROTECTED]
---------------------
186,272 miles per second:
It isn't just a good idea, it's the law!


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to