#include <copy_field.h>
Public Member Functions | |
void | set (Field *to, Field *from, bool save) |
void | set (unsigned char *to, Field *from) |
Static Public Member Functions | |
static void * | operator new (size_t size) |
static void * | operator new (size_t size, Root *mem_root) |
static void * | operator new[] (size_t size) |
static void * | operator new[] (size_t size, Root *mem_root) |
static void | operator delete (void *, size_t) |
static void | operator delete (void *, Root *) |
static void | operator delete[] (void *, Root *) |
static void | operator delete[] (void *, size_t) |
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 34 of file copy_field.h.
typedef void drizzled::CopyField::Copy_func(CopyField *) [private] |
Convenience definition of a copy function returned by get_copy_func.
Definition at line 40 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 553 of file field_conv.cc.
References drizzled::Field::null_bit, drizzled::Field::null_ptr, drizzled::Field::pack_length(), and drizzled::Field::ptr.