Blocks
block ( n -- a )
Get a 1024 byte block.
buffer ( n -- a )
Get a 1024 byte block without regard to old contents.
copy ( from to -- )
Copy the contents of the from block to the to block.
empty-buffers ( -- )
Empty all buffers.
flush ( -- )
Save and empty all buffers.
list ( n -- )
List a block.
load ( n -- )
Load a block.
open-blocks ( a n -- )
Open a file as the block file.
save-buffers ( -- )
Save all buffers.
Transfer the contents of each UPDATEd block buffer to mass storage. Mark all buffers as unmodified.
scr ( -- a )
Variable.
Pointer to last listed block.
thru ( a b -- )
Load blocks a thru b
update ( -- )
Mark the last block modified
use ( -- <name> )
Use <name> as the blockfile, e.g. use /spiffs/foo
Définition de use
:
: use ( -- <name> ) bl parse open-blocks ;