Commit da2f8ada authored by Jelte Jansen's avatar Jelte Jansen
Browse files

removed some constants which weren't used anymore

updated documentation as mentioned in ticket #250

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 05222ba8
......@@ -30,25 +30,6 @@
using namespace std;
namespace {
const unsigned char PROTOCOL_VERSION[4] = { 0x53, 0x6b, 0x61, 0x6e };
const unsigned char ITEM_BLOB = 0x01;
const unsigned char ITEM_HASH = 0x02;
const unsigned char ITEM_LIST = 0x03;
const unsigned char ITEM_NULL = 0x04;
const unsigned char ITEM_BOOL = 0x05;
const unsigned char ITEM_INT = 0x06;
const unsigned char ITEM_REAL = 0x07;
const unsigned char ITEM_UTF8 = 0x08;
const unsigned char ITEM_MASK = 0x0f;
const unsigned char ITEM_LENGTH_32 = 0x00;
const unsigned char ITEM_LENGTH_16 = 0x10;
const unsigned char ITEM_LENGTH_8 = 0x20;
const unsigned char ITEM_LENGTH_MASK = 0x30;
namespace isc {
namespace data {
......@@ -259,9 +259,9 @@ public:
/// \brief These functions simply wrap the given data directly
/// in an Element object, and return a reference to it, in the form
/// of an \c ElementPtr.
/// If there is a memory allocation problem, these functions will
/// return a NULL ElementPtr, which can be checked with
/// Element::is_null(ElementPtr ep).
/// These factory functions are exception-free (unless there is
/// no memory available, in which case bad_alloc is raised by the
/// underlying system).
/// (Note that that is different from an NullElement, which
/// represents an empty value, and is created with Element::create())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment