cache-mmap

command module
v0.0.0-...-3441017 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

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)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package ftok provides a way to generate a System V IPC key, suitable for using with msgget, semget, or shmget.
Package ftok provides a way to generate a System V IPC key, suitable for using with msgget, semget, or shmget.
Package mmap provides a way to memory-map a file.
Package mmap provides a way to memory-map a file.
Package shm provides a way to use System V shared memory.
Package shm provides a way to use System V shared memory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL