mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-09-11 03:20:34 +02:00
26 lines
488 B
Go
26 lines
488 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package memory_map
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func (mMap *MemoryMap) CreateMemoryMap(file *os.File, maxLength uint64) {
|
|
}
|
|
|
|
func (mMap *MemoryMap) WriteMemory(offset uint64, length uint64, data []byte) {
|
|
|
|
}
|
|
|
|
func (mMap *MemoryMap) ReadMemory(offset uint64, length uint64) ([]byte, error) {
|
|
dataSlice := []byte{}
|
|
return dataSlice, fmt.Errorf("Memory Map not implemented for this platform")
|
|
}
|
|
|
|
func (mBuffer *MemoryMap) DeleteFileAndMemoryMap() {
|
|
|
|
}
|