Well, until you start doing "bit-shift-right"s and the sign bit (high
bit) doesn't go to 0 after shifting it down. Actually you typically
need to represent individual bytes as ints and write them back out
using writeByte() when you're trying to do low level bit-twiddling.

It's a pain but it works.

On Feb 11, 11:24 am, Andy Fingerhut <andy.finger...@gmail.com> wrote:
> What can you not do with the signed byte type and arrays of bytes  
> (Java byte[] and Clojure (byte-array ...))?
>
> I believe these are frequently used for Java I/O, and can be used for  
> Clojure I/O as well.
>
> Andy
>
> On Feb 11, 2011, at 9:22 AM, timc wrote:
>
>
>
>
>
>
>
> > How on earth is one supposed to do communication programming (not to
> > mention handling binary files etc) without an unsigned byte type?
>
> > I see that this issue has been talked about vaguely - is there a
> > solution?
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient  
> > with your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to