Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3323

Re: splitting binary data

From 7stud -- <bbxx789_05ss@yahoo.com>
Newsgroups comp.lang.ruby
Subject Re: splitting binary data
Date 2011-04-21 12:18 -0500
Organization Service de news de lacave.net
Message-ID <bd8e6df73eed51dd17b0d11bfdc15f5b@ruby-forum.com> (permalink)
References <a27c4fbb30b28a4543b4ed0920037c24@ruby-forum.com> <7568e966e6a587834b24d6893c5b6c41@ruby-forum.com>

Show all headers | View raw


hroyd hroyd wrote in post #994257:
>
> Thanks for your help
>

Sure.  Also, note that ruby lets you do this:

pattern = "\xFF" * 16
p pattern

--output:--
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"


..so that you don't have to write that out by hand.

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

splitting binary data hroyd hroyd <hroyd@mailinator.com> - 2011-04-20 03:26 -0500
  Re: splitting binary data 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-20 12:54 -0500
    Re: splitting binary data Iñaki Baz Castillo <ibc@aliax.net> - 2011-04-21 05:52 -0500
      Re: splitting binary data 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-21 12:13 -0500
        Re: splitting binary data Iñaki Baz Castillo <ibc@aliax.net> - 2011-04-21 12:27 -0500
          Re: splitting binary data 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-21 12:56 -0500
            Re: splitting binary data "Y. NOBUOKA" <nobuoka@r-definition.com> - 2011-04-26 04:47 -0500
  Re: splitting binary data hroyd hroyd <hroyd@mailinator.com> - 2011-04-21 05:01 -0500
    Re: splitting binary data 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-21 12:18 -0500

csiph-web