Dear all,<div><br></div><div>I am trying to write a small implementation of Protocol Buffers (   <a href="http://code.google.com/p/protobuf/">http://code.google.com/p/protobuf/</a>  ) and I have difficulties</div><div>with bit manipulations, especially to transform a negative integer into a series of bytes and back.</div>
<div><br></div><div>I can not find an implementation of a non-arithmetic shift for fixnums, and a way to specify which size of fixnum to construct.</div><div><br></div><div>I can&#39;t also find an easy way to get the byte representation of flonums.</div>
<div><br></div><div>Do you have any idea?</div><div><br></div><div>Best regards,</div><div><br></div><div>Nicolas.</div>