10225501448 李度 10225101546 陈胤遒 10215501422 高宇菲
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#ifndef STORAGE_LEVELDB_UTIL_SERIALIZE_VALUE_H_
|
|
#define STORAGE_LEVELDB_UTIL_SERIALIZE_VALUE_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
namespace leveldb{
|
|
using Field = std::pair<std::string, std::string>; // field_name:field_value
|
|
using FieldArray = std::vector<std::pair<std::string, std::string>>;
|
|
|
|
std::string SerializeValue(const FieldArray& fields);
|
|
FieldArray *ParseValue(const std::string& value_str);
|
|
}
|
|
#endif
|