#include <llsdserialize.h>
Public Types | |
enum | ELLSD_Serialize { LLSD_BINARY, LLSD_XML } |
enum | { SIZE_UNLIMITED = -1 } |
anonymouse enumeration for useful max_bytes constants. More... | |
Static Public Member Functions | |
static void | serialize (const LLSD &sd, std::ostream &str, ELLSD_Serialize, U32 options=LLSDFormatter::OPTIONS_NONE) |
static bool | deserialize (LLSD &sd, std::istream &str, S32 max_bytes) |
static S32 | toNotation (const LLSD &sd, std::ostream &str) |
static S32 | fromNotation (LLSD &sd, std::istream &str, S32 max_bytes) |
static LLSD | fromNotation (std::istream &str, S32 max_bytes) |
static S32 | toXML (const LLSD &sd, std::ostream &str) |
static S32 | toPrettyXML (const LLSD &sd, std::ostream &str) |
static S32 | fromXML (LLSD &sd, std::istream &str) |
static S32 | toBinary (const LLSD &sd, std::ostream &str) |
static S32 | fromBinary (LLSD &sd, std::istream &str, S32 max_bytes) |
static LLSD | fromBinary (std::istream &str, S32 max_bytes) |
Definition at line 651 of file llsdserialize.h.
anonymous enum |
anonymouse enumeration for useful max_bytes constants.
Definition at line 662 of file llsdserialize.h.
void LLSDSerialize::serialize | ( | const LLSD & | sd, | |
std::ostream & | str, | |||
ELLSD_Serialize | type, | |||
U32 | options = LLSDFormatter::OPTIONS_NONE | |||
) | [static] |
Definition at line 62 of file llsdserialize.cpp.
References llendl, LLSD_BINARY, LLSD_BINARY_HEADER(), LLSD_XML, LLSD_XML_HEADER(), llwarns, LLPointer< Type >::notNull(), and NULL.
Referenced by send_group_notice().
Examine a stream, and parse 1 sd object out based on contents.
sd | [out] The data found on the stream | |
str | The incoming stream | |
max_bytes | the maximum number of bytes to parse |
Definition at line 89 of file llsdserialize.cpp.
References i, LEGACY_NON_HEADER, llendl, LLSD_BINARY_HEADER(), LLSD_XML_HEADER(), llwarns, MAX_HDR_LEN, LLPointer< Type >::notNull(), NULL, p, and LLSDXMLParser::parsePart().
Definition at line 689 of file llsdserialize.h.
References LLSDFormatter::OPTIONS_NONE.
Referenced by LLSDRPCServer::buildResponse(), LLSDRPCClient::call(), and tut::TestLLSDCrossCompatible::ensureBinaryAndNotation().
static S32 LLSDSerialize::fromNotation | ( | LLSD & | sd, | |
std::istream & | str, | |||
S32 | max_bytes | |||
) | [inline, static] |
Definition at line 694 of file llsdserialize.h.
References p.
Referenced by tut::TestLLSDCrossCompatible::ensureBinaryAndNotation(), idle_startup(), LLFloaterSnapshot::Impl::onCommitResolution(), LLSDRPCServer::process_impl(), LLSDRPCClient::process_impl(), LLFilterSD2XMLRPCRequest::process_impl(), and LLFilterSD2XMLRPCResponse::process_impl().
Definition at line 710 of file llsdserialize.h.
References LLSDFormatter::OPTIONS_NONE.
Referenced by tut::TestLLSDCrossCompatible::ensureBinaryAndXML(), LLCurlRequest::post(), LLURLHistory::saveFile(), and upload_new_resource().
Definition at line 715 of file llsdserialize.h.
References LLSDFormatter::OPTIONS_PRETTY.
Referenced by LLAppViewer::closeDebug(), LLCacheName::exportFile(), LLControlGroup::saveToFile(), LLCrashLogger::sendCrashLogs(), LLViewerImageList::shutdown(), tut::LLMessageConfigTestData::writeConfigFile(), tut::control_group::writeSettingsFile(), LLInventoryView::~LLInventoryView(), and LLMuteList::~LLMuteList().
Definition at line 721 of file llsdserialize.h.
References p, and SIZE_UNLIMITED.
Referenced by LLHTTPBuffer::asLLSD(), LLCurl::Responder::completedRaw(), LLControlGroupCLP::configure(), LLViewerImageList::doPrefetchImages(), tut::TestLLSDCrossCompatible::ensureBinaryAndXML(), LLCrashLogger::gatherFiles(), LLCacheName::importFile(), LLInventoryView::init(), LLMuteList::LLMuteList(), LLURLHistory::loadFile(), LLMessageConfigFile::loadFile(), LLLiveAppConfig::loadFile(), LLIndraConfigFile::loadFile(), LLControlGroup::loadFromFile(), and LLServiceBuilder::loadServiceDefinitionsFromFile().
Definition at line 732 of file llsdserialize.h.
References LLSDFormatter::OPTIONS_NONE.
Referenced by tut::TestLLSDCrossCompatible::ensureBinaryAndNotation(), and tut::TestLLSDCrossCompatible::ensureBinaryAndXML().
static S32 LLSDSerialize::fromBinary | ( | LLSD & | sd, | |
std::istream & | str, | |||
S32 | max_bytes | |||
) | [inline, static] |
Definition at line 737 of file llsdserialize.h.
References p.
Referenced by tut::TestLLSDCrossCompatible::ensureBinaryAndNotation(), and tut::TestLLSDCrossCompatible::ensureBinaryAndXML().