mirror of
https://github.com/nlohmann/json.git
synced 2026-10-17 03:28:12 +00:00
Follow the renames from the review of the view builder
The review of #5620 renamed document_data's tape/tape_size/tape_cap to nodes/node_count/node_capacity and made the decode arena a std::vector<char>; adapt the code of this change to it. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -713,7 +713,7 @@ class basic_json_view
|
|||||||
/// decoded strings); the estimate sizes the output buffer of dump()
|
/// decoded strings); the estimate sizes the output buffer of dump()
|
||||||
std::size_t source_extent() const noexcept
|
std::size_t source_extent() const noexcept
|
||||||
{
|
{
|
||||||
const node* const end = m_doc->tape + m_doc->tape_size;
|
const node* const end = m_doc->nodes + m_doc->node_count;
|
||||||
if ((m_node->flags & detail::view::node_flags::storage) != 0)
|
if ((m_node->flags & detail::view::node_flags::storage) != 0)
|
||||||
{
|
{
|
||||||
return m_node->len;
|
return m_node->len;
|
||||||
|
|||||||
Generated
+1
-1
@@ -4604,7 +4604,7 @@ class basic_json_view
|
|||||||
/// decoded strings); the estimate sizes the output buffer of dump()
|
/// decoded strings); the estimate sizes the output buffer of dump()
|
||||||
std::size_t source_extent() const noexcept
|
std::size_t source_extent() const noexcept
|
||||||
{
|
{
|
||||||
const node* const end = m_doc->tape + m_doc->tape_size;
|
const node* const end = m_doc->nodes + m_doc->node_count;
|
||||||
if ((m_node->flags & detail::view::node_flags::storage) != 0)
|
if ((m_node->flags & detail::view::node_flags::storage) != 0)
|
||||||
{
|
{
|
||||||
return m_node->len;
|
return m_node->len;
|
||||||
|
|||||||
Reference in new issue
Block a user