优化MMAP相关功能

This commit is contained in:
GoEdgeLab
2024-04-04 08:28:14 +08:00
parent 4c30c28b4c
commit dcd8a0e020
12 changed files with 65 additions and 61 deletions

View File

@@ -6,23 +6,12 @@ package caches
import (
"errors"
"io"
"os"
)
func IsValidForMMAP(fp *os.File) (ok bool, stat os.FileInfo) {
// stub
return
}
type MMAPFileReader struct {
FileReader
}
func NewMMAPFileReader(fp *os.File, stat os.FileInfo) (*MMAPFileReader, error) {
// stub
return &MMAPFileReader{}, errors.New("not implemented")
}
func (this *MMAPFileReader) CopyBodyTo(writer io.Writer) (int, error) {
// stub
return 0, errors.New("not implemented")