#include "fielddb/metakv.h"
|
|
#include "util/coding.h"
|
|
#include <string>
|
|
|
|
namespace fielddb {
|
|
using namespace leveldb;
|
|
|
|
Slice MetaKV::metaKey() {
|
|
std::string buf;
|
|
PutLengthPrefixedSlice(&buf, Key);
|
|
PutFixed64(&buf, meta_seq);
|
|
PutFixed32(&buf, tag);
|
|
return Slice(buf);
|
|
}
|
|
|
|
Slice MetaKV::metaValue() {
|
|
return Slice(SerializeValue(Fields));
|
|
}
|
|
|
|
}
|