#include <copy_field.h>
Public Member Functions | |
void | set (Field *to, Field *from, bool save) |
void | set (unsigned char *to, Field *from) |
Public Attributes | |
unsigned char * | from_ptr |
unsigned char * | to_ptr |
unsigned char * | from_null_ptr |
unsigned char * | to_null_ptr |
bool * | null_row |
uint32_t | from_bit |
uint32_t | to_bit |
uint32_t | from_length |
uint32_t | to_length |
Field * | from_field |
Field * | to_field |
String | tmp |
void(* | do_copy )(CopyField *) |
void(* | do_copy2 )(CopyField *) |
Private Types | |
typedef void | Copy_func (CopyField *) |
Private Member Functions | |
Copy_func * | get_copy_func (Field *to, Field *from) |
A class for quick copying data to fields
Definition at line 32 of file copy_field.h.
|
private |
Convenience definition of a copy function returned by get_copy_func.
Definition at line 38 of file copy_field.h.
void drizzled::CopyField::set | ( | unsigned char * | to, |
Field * | from | ||
) |
copy of field to maybe null string. If field is null then the all bytes are set to 0. if field is not null then the first byte is set to 1 and the rest of the string is the field value. The 'to' buffer should have a size of field->pack_length()+1
Definition at line 544 of file field_conv.cc.
References drizzled::Field::null_bit, drizzled::Field::null_ptr, drizzled::Field::pack_length(), and drizzled::Field::ptr.