tool/DataTypeHandler.cpp
changeset 2589 2b9c78543663
parent 2411 01370d59233d
child 2621 a26dee45c467
equal deleted inserted replaced
2415:af21f0bdc7c9 2589:2b9c78543663
   100         const DataType *type,
   100         const DataType *type,
   101         const string &source,
   101         const string &source,
   102         void *target,
   102         void *target,
   103         size_t targetSize
   103         size_t targetSize
   104         )
   104         )
   105 { 
   105 {
   106     stringstream str;
   106     stringstream str;
   107     size_t dataSize = type->byteSize;
   107     size_t dataSize = type->byteSize;
   108 
   108 
   109 #if DEBUG
   109 #if DEBUG
   110 	cerr << __func__ << "(targetSize=" << targetSize << ")" << endl;
   110 	cerr << __func__ << "(targetSize=" << targetSize << ")" << endl;
   267         ostream &o,
   267         ostream &o,
   268         const DataType *type,
   268         const DataType *type,
   269         void *data,
   269         void *data,
   270         size_t dataSize
   270         size_t dataSize
   271         )
   271         )
   272 { 
   272 {
   273     uint16_t typeCode;
   273     uint16_t typeCode;
   274 
   274 
   275     if (type) {
   275     if (type) {
   276         if (type->byteSize && dataSize != type->byteSize) {
   276         if (type->byteSize && dataSize != type->byteSize) {
   277             stringstream err;
   277             stringstream err;