0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
KeyCompressorNone.cc
Go to the documentation of this file.
1 
22 #include "Common/Compat.h"
23 
24 #include "KeyCompressorNone.h"
25 
26 using namespace Hypertable;
27 
28 
32 }
33 
34 void KeyCompressorNone::add(const Key &key) {
35  HT_ASSERT(key.serial.ptr);
38 }
39 
41  return m_serialized_key_len;
42 }
43 
45  return m_serialized_key_len;
46 }
47 
48 void KeyCompressorNone::write(uint8_t *buf) {
50  m_serialized_key.ptr = buf;
51 }
52 
55  m_serialized_key.ptr = buf;
56 }
virtual void write(uint8_t *buf)
#define HT_ASSERT(_e_)
Definition: Logger.h:396
Compatibility Macros for C/C++.
size_t length() const
Retrieves the length of the serialized string.
Definition: ByteString.h:62
const uint8_t * ptr
The pointer to the serialized data.
Definition: ByteString.h:121
Hypertable definitions
SerializedKey serial
Definition: Key.h:123
virtual void write_uncompressed(uint8_t *buf)
Provides access to internal components of opaque key.
Definition: Key.h:40
virtual void add(const Key &key)