Versions in this module Expand all Collapse all v0 v0.0.2 Aug 15, 2022 v0.0.1 Apr 19, 2022 Changes in this version + var ErrorGivenSliceBiggerThanData = fmt.Errorf("shm: p is larger than SharedMemory size") + var ErrorGivenSliceTooBig = fmt.Errorf("shm: slice of bytes provided too big to write") + type SharedMemory struct + func New(id int, size int) SharedMemory + func (sm *SharedMemory) Close() error + func (sm *SharedMemory) ID() int + func (sm *SharedMemory) Open() error + func (sm *SharedMemory) Read(p []byte) (n int, err error) + func (sm *SharedMemory) ReadAt(p []byte, off int64) (n int, err error) + func (sm *SharedMemory) Size() int + func (sm *SharedMemory) Write(p []byte) (n int, err error) + func (sm *SharedMemory) WriteAt(p []byte, off int64) (n int, err error)