From: Sonn Ygg Date: 2007-06-26T03:48:02+09:00 Subject: Re: could anyone help me in the question, thanks? Alex Young wrote: > Sonn Ygg wrote: >> int main(void) >> How could I do above in Ruby because I don't find how to specify the >> data type of variables or the address of variables in Ruby so far? I >> will deeply appreciate if anyone gives me any hint about it? Thanks a >> lot. >> > You only need to worry about the types at the > serialisation/deserialisation interface, and you can do that with > Array#pack and String#unpack. There's also bitstruct at > http://raa.ruby-lang.org/project/bit-struct/ if your needs are more > complicated. Thanks a lot! -- Posted via http://www.ruby-forum.com/.