Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixing IO.binwrite specs, parsing options. #729
@headius @enebo @atambo Fixing binwrites specs. And as the hasOffset flag was removed and the mode calculation was done inline on the binwrite method I felt the necessity to parse mode in a string format to an int oflag. I've found a deprecated method that does this conversion, I know it is not the perfect world if you can give me feedback on other method that does the same thing.
EncodingUtils has a method that kind of does the same thing, but it depends on a file instance which I don't have.
(the deprecated method is ModeFlags. getOFlagsFromString)
Also if you are looking for a non-deprecated method I think