Hex looks like this: <"0000000000005205" →. I want it to return 0x5205 instead of reading it as 383368918279913472. How do I do this?
It looks like a big-endian. Use bigEndianToNative from std.bitmanip.
bigEndianToNative
See: http://dlang.org/phobos/std_conv.html#parse
auto myInt = parse!ulong(textFromFile, 16);
Source: https://habr.com/ru/post/1388738/More articles:Capybara & RSpec - ruby-on-rails-3How to make my username div expand its width depending on the length of the username? - htmluse getters class or class properties? (PHP) - propertiesBackbone JS Datatable Integration - javascriptGenerics & Inheritance: What am I doing wrong here? - inheritanceJava Features String / Number / currency - javaUsing iteration to develop permissions - javaHow to determine which overloaded function is being called? - c ++LocalStorage, Looping through mapped identifiers, removing from DOM - jsonHow to compare generic member type of generic java classin - javaAll Articles