diff options
Diffstat (limited to 'src/alloc/secmem.h')
-rw-r--r-- | src/alloc/secmem.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h index cbc4354ad..5261724ae 100644 --- a/src/alloc/secmem.h +++ b/src/alloc/secmem.h @@ -135,18 +135,12 @@ class MemoryRegion * @param in the array to copy the contents from * @param n the length of in */ +#if 1 void copy(size_t off, const T in[], size_t n) { copy_mem(buf + off, in, std::min(n, size() - off)); } - - /** - * Set the contents of this according to the argument. The size of - * this is increased if necessary. - * @param in the array of objects of type T to copy the contents from - * @param n the size of array in - */ - void set(const T in[], size_t n) { resize(n); copy(in, n); } +#endif /** * Append a single element. @@ -193,6 +187,14 @@ class MemoryRegion } /** + * Set the contents of this according to the argument. The size of + * this is increased if necessary. + * @param in the array of objects of type T to copy the contents from + * @param n the size of array in + */ + void set(const T in[], size_t n) { resize(n); copy(in, n); } + + /** * @param locking should we use a locking allocator * @param length the initial length to use */ |