0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
KeyDecompressorNone.cc
Go to the documentation of this file.
1 
22 #include "Common/Compat.h"
23 
24 #include "KeyDecompressorNone.h"
25 
26 using namespace Hypertable;
27 
28 
31 }
32 
33 const uint8_t *KeyDecompressorNone::add(const uint8_t *ptr) {
34  m_serialized_key.ptr = ptr;
35  return ptr + m_serialized_key.length();
36 }
37 
38 
40  return m_serialized_key < serialized_key;
41 }
42 
43 
46 }
Compatibility Macros for C/C++.
bool load(const SerializedKey &key)
Parses the opaque key and loads the components into the member variables.
Definition: Key.cc:158
size_t length() const
Retrieves the length of the serialized string.
Definition: ByteString.h:62
bool less_than(SerializedKey serialized_key) override
const uint8_t * ptr
The pointer to the serialized data.
Definition: ByteString.h:121
Hypertable definitions
Provides access to internal components of opaque key.
Definition: Key.h:40
const uint8_t * add(const uint8_t *ptr) override