JvmRandomAccessSource
JVM implementation of RandomAccessSource using FileChannel.
Provides efficient random access to files without loading the entire content into memory. Thread-safe for concurrent reads.
Usage:
JvmRandomAccessSource.open("/path/to/model.gguf").use { source ->
val header = source.readAt(0, 24)
println("File size: ${source.size}")
}Content copied to clipboard