EhViewer icon indicating copy to clipboard operation
EhViewer copied to clipboard

Move UniFile to kotlinx-io FileSystem abstraction

Open revonateB0T opened this issue 6 months ago • 0 comments

Mostly we use UniFile to

  • Fastly send file (i.e. Linux sendfile syscall ), avoid copying content over JVM heap
  • Common FileSystem functions(lookup children, create new children)
  • Obtain its FileDescriptor and let libarchive do fast extraction
  • Obtain its FileChannel to do DirectByteBuffer based operation

Where okio FileSystem only provide a ByteArray based, Java IO liked interface, no efficient platform IO primitives

Seems kotlinx-io will support these usage https://github.com/Kotlin/kotlinx-io/issues/241

revonateB0T avatar Dec 27 '23 07:12 revonateB0T