mem

package
v0.0.0-...-bca5430 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2014 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mem

type Mem struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() *Mem

func (*Mem) GetBit

func (m *Mem) GetBit(n uint64) (bool, error)

Returns the bit at the specified location

func (*Mem) Init

func (m *Mem) Init(size uint64) error

Initializes the data store to the specified size

func (*Mem) SetBit

func (m *Mem) SetBit(n uint64, value bool) error

Sets a bit to the specified bool

Jump to

Keyboard shortcuts

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