/**************************************************************************/ /* plist.cpp */ /**************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /**************************************************************************/ /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ #include "plist.h" PList::PLNodeType PListNode::get_type() const { … } Variant PListNode::get_value() const { … } Ref<PListNode> PListNode::new_node(const Variant &p_value) { … } Ref<PListNode> PListNode::new_array() { … } Ref<PListNode> PListNode::new_dict() { … } Ref<PListNode> PListNode::new_string(const String &p_string) { … } Ref<PListNode> PListNode::new_data(const String &p_string) { … } Ref<PListNode> PListNode::new_date(const String &p_string) { … } Ref<PListNode> PListNode::new_bool(bool p_bool) { … } Ref<PListNode> PListNode::new_int(int64_t p_int) { … } Ref<PListNode> PListNode::new_real(double p_real) { … } bool PListNode::push_subnode(const Ref<PListNode> &p_node, const String &p_key) { … } size_t PListNode::get_asn1_size(uint8_t p_len_octets) const { … } int PListNode::_asn1_size_len(uint8_t p_len_octets) { … } void PListNode::store_asn1_size(PackedByteArray &p_stream, uint8_t p_len_octets) const { … } bool PListNode::store_asn1(PackedByteArray &p_stream, uint8_t p_len_octets) const { … } void PListNode::store_text(String &p_stream, uint8_t p_indent) const { … } /*************************************************************************/ PList::PList() { … } PList::PList(const String &p_string) { … } uint64_t PList::read_bplist_var_size_int(Ref<FileAccess> p_file, uint8_t p_size) { … } Ref<PListNode> PList::read_bplist_obj(Ref<FileAccess> p_file, uint64_t p_offset_idx) { … } bool PList::load_file(const String &p_filename) { … } bool PList::load_string(const String &p_string, String &r_err_out) { … } PackedByteArray PList::save_asn1() const { … } String PList::save_text() const { … } Ref<PListNode> PList::get_root() { … }