nv-facutil-simple-memory
v1.0.1
Published
nv-facutil-simple-memory ============================= - mini memeory , its just a array of [undefined,...|stack|...,null,true,false,...|heap|...]
Downloads
1
Readme
nv-facutil-simple-memory
- mini memeory , its just a array of [undefined,...|stack|...,null,true,false,...|heap|...]
install
- npm install nv-facutil-simple-memory
usage
const {Mem} = require("nv-facutil-simple-memory");
example
> var mem = new Mem()
undefined
> mem
Mem(36) [
undefined, undefined, undefined,
undefined, undefined, undefined,
undefined, undefined, undefined,
undefined, undefined, undefined,
undefined, undefined, undefined,
undefined, undefined, undefined,
undefined, undefined, undefined,
undefined, undefined, undefined,
undefined, undefined, undefined,
undefined, undefined, undefined,
undefined, undefined, undefined,
null, true, false
]
> mem.stack_size_
32
> mem.stack_pointer_
32
> mem.heap_start_
36
> mem.heap_next_
36
> mem.add(1)
36
> mem.heap_next_
37
METHODS
mem.get
mem.add
mem.drop
mem.take
////
mem.add_borrowed
mem.free_borrowed
////
mem.heap_next_
mem.heap_start_
mem.stack_pointer_
mem.stack_size_
APIS
- Cache.ERRORS
LICENSE
- ISC