Skip to content

892294101/cache-mmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages