#pragma once #include class Buffer; struct LoginInfo { uint32_t label; uint32_t password; }; struct Index { uint32_t count; uint32_t offset; }; int find_logininfo_in_buffer(Buffer& buffer, const char* label); void delete_logininfo_from_buffer(Buffer& buffer, int index_of_pass); void add_logininfo_to_buffer(Buffer& buffer, const char* label, const char* password); const char* get_logininfo_pointer_from_buffer(Buffer& buffer, int index_of_pass); void generate_password(std::string& password, int len); bool save_buffer_to_file(Buffer& buffer); bool load_buffer_from_file(Buffer& buffer);