| 564 | // CPM extra code: public and protected methods/structs/etc below |
| 565 | template<typename Dtype> |
| 566 | void DecodeFloats(const string& data, size_t idx, Dtype* pf, size_t len) { |
| 567 | memcpy(pf, const_cast<char*>(&data[idx]), len * sizeof(Dtype)); |
| 568 | } |
| 569 | |
| 570 | string DecodeString(const string& data, size_t idx) { |
| 571 | string result = ""; |