Crate bitcoinleveldb_env

Source

Structs§

EnvWrapper
| An implementation of Env that forwards all | calls to another Env. | | May be useful to clients who wish to override | just part of the functionality of another Env.

Constants§

LEVELDB_DELETEFILE_UNDEFINED

Traits§

Env
| in the c++, we had the following annotated | empty Default impl: | | Return a default environment suitable for the | current operating system. Sophisticated | users may wish to provide their own Env | implementation instead of relying on this | default environment. | | The result of Default() belongs to leveldb | and must never be deleted.
GetTestDirectory
NewLogger
NowMicros
Schedule
SleepForMicroseconds
StartThread

Functions§

dbleveldbutil_main
do_write_string_to_file
handle_dump_command
log
| Log the specified data to *info_log | if info_log is non-null. |
read_file_to_string
| A utility routine: read contents of | named file into *data |
set_current_file
| Make the CURRENT file point to the descriptor | file with the specified number. |
write_string_to_file
| A utility routine: write “data” to the | named file. |
write_string_to_file_sync
| A utility routine: write “data” to the | named file and Sync() it. |