~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/blob.cc

  • Committer: Brian Aker
  • Date: 2009-01-23 06:31:19 UTC
  • mfrom: (779.1.30 devel)
  • mto: (779.3.3 devel)
  • mto: This revision was merged to the branch mainline in revision 811.
  • Revision ID: brian@tangent.org-20090123063119-gyijowf4ag6quw7b
Committing merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
void Field_blob::store_length(unsigned char *i_ptr,
60
60
                              uint32_t i_packlength,
61
61
                              uint32_t i_number,
62
 
                              bool )
 
62
                              bool low_byte_first)
63
63
{
 
64
#ifndef WORDS_BIGENDIAN
 
65
  (void)low_byte_first;
 
66
#endif
64
67
  switch (i_packlength) {
65
68
  case 1:
66
69
    i_ptr[0]= (unsigned char) i_number;
99
102
 
100
103
 
101
104
uint32_t Field_blob::get_length(const unsigned char *pos,
102
 
                              uint32_t packlength_arg,
103
 
                              bool )
 
105
                                uint32_t packlength_arg,
 
106
                                bool low_byte_first)
104
107
{
 
108
#ifndef WORDS_BIGENDIAN
 
109
  (void)low_byte_first;
 
110
#endif
105
111
  switch (packlength_arg) {
106
112
  case 1:
107
113
    return (uint32_t) pos[0];