| 123 | |
| 124 | template<typename IntegralType1, typename IntegralType2, enable_if( is_integral(IntegralType1) && is_integral(IntegralType2) )> |
| 125 | void memsetAtPos(IntegralType1 pos, unsigned char c, IntegralType2 count) { |
| 126 | if (pos < 0) panic("XBuffer::memset : pos < 0. System halted\n"); |
| 127 | if (count < 0) panic("XBuffer::memset : count < 0. System halted\n"); |
| 128 | if ( (size_t)pos + (unsigned_type(IntegralType2))count >= size() ) setSize((size_t)pos + (unsigned_type(IntegralType2))count); |
| 129 | ::memset(_WData, c, count); |
| 130 | } |
| 131 | |
| 132 | void ncpy(const void *buf, size_t len); |
| 133 | // Cat |