package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Dec 10, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ReadFile reads in large files using memory-mapped I/O.
It reads the file in chunks and returns the entire file as a byte slice.
Parameters:
- file_path: string
- chunk_size: int (optional)
Returns:
type Chunk struct {
Index int
Data []byte
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.