#pragma once #include //DataTable.cpp class DataTable{ char *buffer; int size; void Realloc( int size ) { this->buffer = (char *)realloc( this->buffer, size + 100 ); this->size = size; } // XMLシリアライズ用 private: friend class boost::serialization::access; BOOST_SERIALIZATION_SPLIT_MEMBER(); template void load(Archive& ar, const unsigned int version) { std::string _buffer; ar & BOOST_SERIALIZATION_NVP( _buffer ); ar & BOOST_SERIALIZATION_NVP( size ); // 読み込み後の処理 Realloc( size ); for( int i=0; i= 'a' ) ? ( _buffer[i*3] - 'a' + 0x0a ) : ( _buffer[i*3] - '0' ) ) * 0x10; ULONG_PTR l2 = ( _buffer[i*3+1] >= 'a' ) ? ( _buffer[i*3+1] - 'a' + 0x0a ) : ( _buffer[i*3+1] - '0' ); ULONG_PTR l = l1 + l2; buffer[i] = static_cast(l); } } template void save(Archive& ar, const unsigned int version) const { // 保存準備 char *tempCode = (char *)calloc( (size+1) * 3, 1 ); for( int i=0; i