static std::string peekStringCopy(const NValue value) { assert((value.getValueType() == VALUE_TYPE_VARCHAR) || (value.getValueType() == VALUE_TYPE_VARBINARY)); std::string result(reinterpret_cast<const char*>(value.getObjectValue()), value.getObjectLength()); return result; }
static inline int32_t peekObjectLength(const NValue value) { assert((value.getValueType() == VALUE_TYPE_VARCHAR) || (value.getValueType() == VALUE_TYPE_VARBINARY)); return value.getObjectLength(); }