fs: work with any TypedArrays instead of only Uint8Arrays
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Partially fixing #1826 (closed)
Haven't added tests yet, since I'm not sure what behaviour to expect. Current tests are not breaking, though, so yay!
Tests have been added since.