, , Windows. , .
open(filename, "rb") do |file|
num = file.read(2).unpack("S")
puts num
end
"endian" . , PowerPC, Mac, IBM Power, PS3 Sun Sparc.
Can you post an example of how this is βlessβ? Usually there is an obvious template for data.
For example, if you want 0x1234, but you get 0x3412, this will be an end problem.
source
share