~jaypipes/drizzle/new-test-runner

« back to all changes in this revision

Viewing changes to drizzled/field/blob.h

  • Committer: Jay Pipes
  • Date: 2008-12-11 17:52:34 UTC
  • mfrom: (482.16.152 testable)
  • Revision ID: jpipes@serialcoder-20081211175234-uqsfvmgxejvmellq
merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/field/longstr.h>
25
25
 
 
26
#include <string>
 
27
 
26
28
class Field_blob :public Field_longstr {
27
29
protected:
28
30
  uint32_t packlength;
80
82
 
81
83
 
82
84
  /**
83
 
     Return the packed length without the pointer size added. 
 
85
     Return the packed length without the pointer size added.
84
86
 
85
87
     This is used to determine the size of the actual data in the row
86
88
     buffer.
111
113
  }
112
114
 
113
115
  /**
114
 
     Return the packed length plus the length of the data. 
 
116
     Return the packed length plus the length of the data.
115
117
 
116
 
     This is used to determine the size of the data plus the 
 
118
     This is used to determine the size of the data plus the
117
119
     packed length portion in the row data.
118
120
 
119
121
     @returns The length in the row plus the size of the data.
149
151
      set_ptr_offset(0, length, data);
150
152
    }
151
153
  uint32_t get_key_image(unsigned char *buff,uint32_t length, imagetype type);
 
154
  uint32_t get_key_image(std::basic_string<unsigned char> &buff,
 
155
                        uint32_t length, imagetype type);
152
156
  void set_key_image(const unsigned char *buff,uint32_t length);
153
157
  void sql_type(String &str) const;
154
158
  inline bool copy()