#ifndef _DISK_TOOLS22_H
#define _DISK_TOOLS22_H

#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include "bsstream.h"
#include "d_env.h"
#include "d_db.h"

namespace disk_tools {

using namespace std;

typedef long offset_type;

template< class T >
inline size_t get_size(const T & data) {
   bstringstream ss;
   ss << data;
   return ss.size();
}


}

#endif /* _DISK_TOOLS_H */
