diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-05-19 14:37:50 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-05-19 14:37:50 -0400 |
commit | 1c8c16f9e8d6452bdfbce75fd44808718c48be77 (patch) | |
tree | 7448b36b1161502ab261c3ee448036df646eca4e /secblock.h | |
parent | c8e19235156c1b69e655c5962b0c617ae55997c8 (diff) | |
download | cryptopp-git-1c8c16f9e8d6452bdfbce75fd44808718c48be77.tar.gz |
Updated documentation
Diffstat (limited to 'secblock.h')
-rw-r--r-- | secblock.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -304,7 +304,7 @@ public: FixedSizeAllocatorWithCleanup() : m_allocated(false) {}
//! \brief Allocates a block of memory
- //! \param size size of the memory block
+ //! \param size size of the memory block, in bytes
//! \details FixedSizeAllocatorWithCleanup provides a fixed-size, stack-
//! based allocation at compile time. If size is less than or equal to
//! S, then a pointer to the static array is returned.
@@ -314,7 +314,8 @@ public: //! obsoleted. If a suitable allocator is \a not available, as with a
//! NullAllocator, then the function returns NULL and a runtime error
//! eventually occurs.
- //! \note size is the count of elements, and not the number of bytes.
+ //! \note size is the number of bytes, and not count of elements. This is somewhat unique among
+ //! library allocators, and its due to the interactions with <tt>NullAllocator<T></tt>.
//! \sa reallocate(), SecBlockWithHint
pointer allocate(size_type size)
{
@@ -330,7 +331,7 @@ public: }
//! \brief Allocates a block of memory
- //! \param size size of the memory block
+ //! \param size size of the memory block, in bytes
//! \param hint an unused hint
//! \details FixedSizeAllocatorWithCleanup provides a fixed-size, stack-
//! based allocation at compile time. If size is less than or equal to
@@ -341,7 +342,8 @@ public: //! obsoleted. If a suitable allocator is \a not available, as with a
//! NullAllocator, then the function returns NULL and a runtime error
//! eventually occurs.
- //! \note size is the count of elements, and not the number of bytes.
+ //! \note size is the number of bytes, and not count of elements. This is somewhat unique among
+ //! library allocators, and its due to the interactions with <tt>NullAllocator<T></tt>.
//! \sa reallocate(), SecBlockWithHint
pointer allocate(size_type size, const void *hint)
{
|