Hello [EMAIL PROTECTED],
This will get you started:
>> a: #{012345} b: #{6789}
== #{6789}
This will reverse the bytes, you need head because reverse leaves series
pointer at the tail.
>> head reverse a
== #{452301}
And this puts it back.
>> head reverse a
== #{012345}
To "join" two binary values.
>> append a b
== #{0123456789}
>>
Cheers
-Larry
You wrote:
> I'm finding that REBOL's a pretty nice tool to get close to the protocol.
> Out of curiosity, how do you reverse byte order, for things like the
length
> header? And I havn't seen an elegant way to concatenate binary! type
data.
> Join would be nice.
>
> >> probe join #{012345} [ #{0123} ]
> #{012345237B303132337D}
>
> >> ; This makes me cringe
> >> probe to-binary join to-string #{012345} [ to-string #{6798} ]
> #{0123456798}
> == #{0123456798}
>
- [REBOL] Problem with try [ open/direct/binary tcp://... ] eventi
- [REBOL] Problem with try [ open/direct/binary tcp://... petr . krenzelok
- [REBOL] Problem with try [ open/direct/binary tc... eventi
- [REBOL] Problem with try [ open/direct/binar... Al . Bri
- [REBOL] Problem with try [ open/direct/b... eventi
- [REBOL] Problem with try [ open/dir... Al . Bri
- [REBOL] Re: Problem with try [ open... rebol
- [REBOL] Problem with try [ open... eventi
- [REBOL] Problem with try [ ... Al . Bri
- [REBOL] Problem with try [ ... joel . neely
- [REBOL] Binary weirdness (w... larry
- [REBOL] Binary weirdness (w... eventi
- [REBOL] Problem with try [ ... g . santilli
- [REBOL] Problem with try [ ... joel . neely
- [REBOL] Problem with try [ ... brett
- [REBOL] Problem with try [ ... joel . neely
- [REBOL] Problem with try [ ... g . santilli
- [REBOL] Problem with try [ ... joel . neely
- [REBOL] Re: Problem with tr... rebol
- [REBOL] Problem with try [ ... carl
- [REBOL] Problem with try [ ... larry
