- Performance improvements to buffer-to-array.
- Fix bug where buffer-seq always started at 0 instead of (.position buf).
- Fix bug in do-copy implementation for File where it was trying to create a read/write channel for both the input and output files. It now just creates a readable channel for the input and a writable channel for the output.
- Fix bug in clojure.java.io/input-stream that was using (.position buf) as an offset, when it shouldn’t have.
- Fix bug in the type hints for the return value of the mmap function.
- Fix bug in the type hints for the return value of many functions.
- extends java.io/copy to handle two additional cases: 1) reading from a ByteBuffer to a WritableByteChannel, and 2) reading from a ReadableByteChannel to a ByteBuffer.
- ensures that channel, readable-channel, and writable-channel on a File all return FileChannel instances.
- add missing type hints for make-input-stream and make-output-stream
- adds byte-order and set-byte-order convenience functions
- Opening non-existent file throws FileNotFoundException
- buffer-to-array ignores the position of the Buffer
- docstring and type hint fixes
- Removed obsolete
src/nio/channels.clj
file.
- Initial release.