bitwise operations on strings with ruby

Posted by artsince on Stack Overflow See other posts from Stack Overflow or by artsince
Published on 2010-05-02T18:17:44Z Indexed on 2010/05/02 18:28 UTC
Read the original article Hit count: 390

Filed under:
|

How can I perform bitwise operations on strings in ruby? I would like to do bitwise & a 4-byte string with a 4-byte long hex such as ("abcd" & 0xDA2DFFD3). I cannot get the byte values of the string. Thanks for your help.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about bitwise-operations