~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/blob.h

  • Committer: Eric Day
  • Date: 2009-10-31 21:53:33 UTC
  • mfrom: (1200 staging)
  • mto: This revision was merged to the branch mainline in revision 1202.
  • Revision ID: eday@oddments.org-20091031215333-j94bjoanwmi68p6f
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLE_SERVER_FIELD_BLOB
22
 
#define DRIZZLE_SERVER_FIELD_BLOB
 
21
#ifndef DRIZZLED_FIELD_BLOB_H
 
22
#define DRIZZLED_FIELD_BLOB_H
23
23
 
24
24
#include <drizzled/field/str.h>
25
25
 
176
176
      memcpy(ptr,length,packlength);
177
177
      memcpy(ptr+packlength,&data,sizeof(char*));
178
178
    }
179
 
  void set_ptr_offset(my_ptrdiff_t ptr_diff, uint32_t length, unsigned char *data)
 
179
  void set_ptr_offset(ptrdiff_t ptr_diff, uint32_t length, unsigned char *data)
180
180
    {
181
181
      unsigned char *ptr_ofs= ADD_TO_PTR(ptr,ptr_diff,unsigned char*);
182
182
      store_length(ptr_ofs, packlength, length);
222
222
  int do_save_field_metadata(unsigned char *first_byte);
223
223
};
224
224
 
225
 
#endif
 
225
#endif /* DRIZZLED_FIELD_BLOB_H */
226
226