Categorygithub.com/892294101/cache-mmap
repositorypackage
0.0.0-20240507032731-5efccc1689ae
Repository: https://github.com/892294101/cache-mmap.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

cache-mmap

n := new(name) n.admin = "ABCDEFG" data := unsafe.Pointer(&n)

dataRe := (*[100]byte)(data)

x, err = b.WriteAt((*dataRe)[0:], 10)
if err != nil {
	b.Flush()
	fmt.Println("Msync2", x)
	os.Exit(1)
}
fmt.Println("index2: ", x)

des := make([]byte, 100)
_, err = b.ReadAt(des, 10)
dataB := unsafe.Pointer(&des)

dataRes := (*name)(dataB)
fmt.Println("dataRes.admin", dataRes.admin)