Getting back a byte string from BitSet

Discussion in 'Ruby' started by David Garamond, Feb 18, 2004.

  1. May I suggest perhaps adding a BitSet#to_bytes to get back raw byte
    string from the BitSet object? i.e.,

    irb> BitSet.new("a").to_bytes
    => "a"

    Regards,
    --
    dave
     
    David Garamond, Feb 18, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter
    Replies:
    3
    Views:
    900
    Michael Borgwardt
    Aug 5, 2004
  2. Dill Hole
    Replies:
    2
    Views:
    534
    Mike Wahler
    Jul 5, 2003
  3. Ike
    Replies:
    3
    Views:
    626
    Dale King
    Nov 29, 2006
  4. jt
    Replies:
    3
    Views:
    1,139
    Keith Thompson
    May 23, 2005
  5. Polaris431
    Replies:
    8
    Views:
    1,022
    SM Ryan
    Dec 4, 2006
  6. Allen
    Replies:
    9
    Views:
    2,495
    Bertrand
    Jan 26, 2009
  7. Replies:
    2
    Views:
    558
    Craig
    Feb 5, 2004
  8. Ninds
    Replies:
    14
    Views:
    1,443
    W Karas
    Dec 3, 2012
Loading...