shm

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	FILE_MAP_ALL_ACCESS = 0xF001F
	PAGE_READWRITE      = 0x04
)

Variables

This section is empty.

Functions

func OpenShm

func OpenShm(name string, size int) (uintptr, uintptr, error)

Types

type SharedMemory

type SharedMemory struct {
	// contains filtered or unexported fields
}

func New

func New(name string, size int) (*SharedMemory, error)

func (*SharedMemory) Close

func (shm *SharedMemory) Close() error

func (*SharedMemory) ReadMemory

func (shm *SharedMemory) ReadMemory(begin, end int, data any) error

func (*SharedMemory) WriteMemory

func (shm *SharedMemory) WriteMemory(begin, end int, data any) (err error)

Jump to

Keyboard shortcuts

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