shm

package
v0.0.0-...-cb352a8 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPC_CREATE  = 00001000
	IPC_EXCL    = 00002000
	IPC_NOWAIT  = 00004000
	IPC_DIPC    = 00010000
	IPC_OWN     = 00020000
	IPC_PRIVATE = 0
	IPC_RMID    = 0
	IPC_SET     = 1
	IPC_STAT    = 2
	IPC_INFO    = 3
	IPC_OLD     = 0
	IPC_64      = 0x0100
)

Variables

This section is empty.

Functions

func Cptr2Bytes

func Cptr2Bytes(ptr unsafe.Pointer, l int64) []byte

func NameToInt

func NameToInt(name string) uint32

Types

type Header struct {
	Version byte  //1byte
	Size    int64 //8byte
}

type ShellMemory

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

func NewShellMemory

func NewShellMemory(name string, size int64) *ShellMemory

func (*ShellMemory) GetShellMemorySize

func (me *ShellMemory) GetShellMemorySize() int64

func (*ShellMemory) OpenShellMemory

func (me *ShellMemory) OpenShellMemory(bCreate bool) bool

func (*ShellMemory) ToBytes

func (me *ShellMemory) ToBytes() []byte

func (*ShellMemory) ToBytesPro

func (me *ShellMemory) ToBytesPro(offset, l int64) []byte

func (*ShellMemory) ToString

func (me *ShellMemory) ToString() string

func (*ShellMemory) WriteByte

func (me *ShellMemory) WriteByte(data []byte, offset int64) int64

func (*ShellMemory) WriteString

func (me *ShellMemory) WriteString(str string, offset int64)

Jump to

Keyboard shortcuts

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