Function get_length

Synopsis

#include <include/sajson.h>

size_t get_length() const

Description

Returns the length of the object or array. Only legal if get_type() is TYPE_ARRAY or TYPE_OBJECT.

Mentioned in

Source

Lines 506-509 in include/sajson.h.

size_t get_length() const {
    assert_tag_2(tag::array, tag::object);
    return payload[0];
}





Add Discussion as Guest

Log in