Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Ruby 中做一些低级别的位操作,想知道 C 中是否存在与htonl()andntohl()函数等效的 Ruby?
htonl()
ntohl()
我遇到了 .pack 方法,但确实[1024].pack("N")提供了合适的 htonl 替代品吗?
[1024].pack("N")