10225501448 李度 10225101546 陈胤遒 10215501422 高宇菲
Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
#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));
|
|
}
|
|
|
|
}
|