memory_map_other.go 488 B

12345678910111213141516171819202122232425
  1. //go:build !windows
  2. // +build !windows
  3. package memory_map
  4. import (
  5. "fmt"
  6. "os"
  7. )
  8. func (mMap *MemoryMap) CreateMemoryMap(file *os.File, maxLength uint64) {
  9. }
  10. func (mMap *MemoryMap) WriteMemory(offset uint64, length uint64, data []byte) {
  11. }
  12. func (mMap *MemoryMap) ReadMemory(offset uint64, length uint64) ([]byte, error) {
  13. dataSlice := []byte{}
  14. return dataSlice, fmt.Errorf("Memory Map not implemented for this platform")
  15. }
  16. func (mBuffer *MemoryMap) DeleteFileAndMemoryMap() {
  17. }