| 465 | } |
| 466 | |
| 467 | void PositionCacheEntry::Set(unsigned int styleNumber_, const char *s_, |
| 468 | unsigned int len_, XYPOSITION *positions_, unsigned int clock_) { |
| 469 | Clear(); |
| 470 | styleNumber = styleNumber_; |
| 471 | len = len_; |
| 472 | clock = clock_; |
| 473 | if (s_ && positions_) { |
| 474 | positions = new XYPOSITION[len + (len / 4) + 1]; |
| 475 | for (unsigned int i=0; i<len; i++) { |
| 476 | positions[i] = static_cast<XYPOSITION>(positions_[i]); |
| 477 | } |
| 478 | memcpy(reinterpret_cast<char *>(positions + len), s_, len); |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | PositionCacheEntry::~PositionCacheEntry() { |
| 483 | Clear(); |
no outgoing calls
no test coverage detected