cphot 0.1
A C++ tool for computing photometry from spectra.
|
|
Go to the documentation of this file.
15 #ifndef RAPIDJSON_MEMORYBUFFER_H_
16 #define RAPIDJSON_MEMORYBUFFER_H_
36 template <
typename Allocator = CrtAllocator>
48 void Pop(
size_t count) {
stack_.template Pop<Ch>(count); }
51 return stack_.template Bottom<Ch>();
65 std::memset(memoryBuffer.
stack_.Push<
char>(n),
c, n *
sizeof(
c));
70 #endif // RAPIDJSON_MEMORYBUFFER_H_
void PutN(MemoryBuffer &memoryBuffer, char c, size_t n)
Implement specialized version of PutN() with memset() for better performance.
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Concept for allocating, resizing and freeing memory block.
GenericMemoryBuffer MemoryBuffer
A type-unsafe stack for storing different types of data.
internal::Stack< Allocator > stack_
const Ch * GetBuffer() const
static const size_t kDefaultCapacity
Represents an in-memory output byte stream.
GenericMemoryBuffer(Allocator *allocator=0, size_t capacity=kDefaultCapacity)