parent
c2e2a4ce43
commit
38dace775c
@ -382,7 +382,7 @@ public:
|
|||||||
typedef typename SourceEncoding::Ch Ch; //!< SourceEncoding character type
|
typedef typename SourceEncoding::Ch Ch; //!< SourceEncoding character type
|
||||||
|
|
||||||
//! Constructor.
|
//! Constructor.
|
||||||
/*! \param allocator Optional allocator for allocating stack memory. (Only use for non-destructive parsing)
|
/*! \param stackAllocator Optional allocator for allocating stack memory. (Only use for non-destructive parsing)
|
||||||
\param stackCapacity stack capacity in bytes for storing a single decoded string. (Only use for non-destructive parsing)
|
\param stackCapacity stack capacity in bytes for storing a single decoded string. (Only use for non-destructive parsing)
|
||||||
*/
|
*/
|
||||||
GenericReader(StackAllocator* stackAllocator = 0, size_t stackCapacity = kDefaultStackCapacity) : stack_(stackAllocator, stackCapacity), parseResult_() {}
|
GenericReader(StackAllocator* stackAllocator = 0, size_t stackCapacity = kDefaultStackCapacity) : stack_(stackAllocator, stackCapacity), parseResult_() {}
|
||||||
@ -728,12 +728,12 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename InputStream, bool backup>
|
template<typename InputStream, bool backup>
|
||||||
class NumberStream {};
|
class NumberStream;
|
||||||
|
|
||||||
template<typename InputStream>
|
template<typename InputStream>
|
||||||
class NumberStream<InputStream, false> {
|
class NumberStream<InputStream, false> {
|
||||||
public:
|
public:
|
||||||
NumberStream(GenericReader& reader, InputStream& is) : is(is) { (void)reader; }
|
NumberStream(GenericReader& reader, InputStream& s) : is(s) { (void)reader; }
|
||||||
~NumberStream() {}
|
~NumberStream() {}
|
||||||
|
|
||||||
RAPIDJSON_FORCEINLINE Ch Peek() const { return is.Peek(); }
|
RAPIDJSON_FORCEINLINE Ch Peek() const { return is.Peek(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user