cmem

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: BSD-3-Clause Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeansdbRL

type BeansdbRL struct {
	AllocRL *ResourceLimiter

	GetData   ResourceLimiter
	SetData   ResourceLimiter
	FlushData ResourceLimiter
}
var (
	DBRL BeansdbRL
)

func (*BeansdbRL) IsZero

func (dbrl *BeansdbRL) IsZero() bool

func (*BeansdbRL) ResetAll

func (dbrl *BeansdbRL) ResetAll()

type CArray

type CArray struct {
	Body []byte
	Addr uintptr
	Cap  int
}

func (*CArray) Alloc

func (arr *CArray) Alloc(size int) bool

func (*CArray) Clear

func (arr *CArray) Clear()

func (*CArray) Copy

func (arr *CArray) Copy() (arrNew CArray, ok bool)

func (*CArray) Free

func (arr *CArray) Free()

type ResourceLimiter

type ResourceLimiter struct {
	Count    int64
	Size     int64
	MaxCount int64
	MaxSize  int64
	Chan     chan int `json:"-"`
}
var (
	AllocRL ResourceLimiter
)

func (*ResourceLimiter) AddCount

func (rl *ResourceLimiter) AddCount(count int)

func (*ResourceLimiter) AddSize

func (rl *ResourceLimiter) AddSize(size int)

func (*ResourceLimiter) AddSizeAndCount

func (rl *ResourceLimiter) AddSizeAndCount(size int)

func (*ResourceLimiter) IsZero

func (rl *ResourceLimiter) IsZero() bool

func (*ResourceLimiter) SubCount

func (rl *ResourceLimiter) SubCount(count int)

func (*ResourceLimiter) SubSize

func (rl *ResourceLimiter) SubSize(size int)

func (*ResourceLimiter) SubSizeAndCount

func (rl *ResourceLimiter) SubSizeAndCount(size int)

Jump to

Keyboard shortcuts

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