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 コードを勉強していて、この "varx" 変数が [0x140,4] で使用されているのを見ました <- それはどういう意味ですか? それを示すルビードキュメントが見つかりませんでした。varx はバイナリ文字列のようなものです。
varx[0x140, 4] = [0x4a8acb38 - 0x1c].pack('V')
varxインデックス 0x140 で始まる4 つの「もの」をvarx、RHS 側から返されたデータに置き換えています。
varx
例:
s="my name is prince"; s[11,6] = "John"; s => "my name is John"