proxygen
|
Classes | |
class | BserDecodeError |
struct | serialization_opts |
Enumerations | |
enum | BserType : int8_t { BserType::Array = 0, BserType::Object, BserType::String, BserType::Int8, BserType::Int16, BserType::Int32, BserType::Int64, BserType::Real, BserType::True, BserType::False, BserType::Null, BserType::Template, BserType::Skip } |
Variables | |
const uint8_t | kMagic [2] = {0, 1} |
|
strong |
|
static |
Definition at line 158 of file Dump.cpp.
References bserEncodeArray(), bserEncodeInt(), bserEncodeObject(), bserEncodeString(), False, folly::dynamic::getBool(), folly::dynamic::getDouble(), folly::dynamic::getInt(), folly::dynamic::getString(), int8_t, Null, Real, STRING, True, folly::dynamic::type(), and folly::io::QueueAppender::write().
Referenced by bserEncodeArray(), bserEncodeArraySimple(), bserEncodeObject(), and toBserIOBuf().
|
static |
Definition at line 98 of file Dump.cpp.
References bserEncode(), bserEncodeArraySimple(), bserEncodeInt(), getTemplate(), int64_t, int8_t, name, folly::dynamic::size(), Skip, Template, UNLIKELY, and folly::io::QueueAppender::write().
Referenced by bserEncode().
|
static |
Definition at line 87 of file Dump.cpp.
References Array, bserEncode(), bserEncodeInt(), int64_t, int8_t, folly::dynamic::size(), and folly::io::QueueAppender::write().
Referenced by bserEncodeArray().
|
static |
Definition at line 52 of file Dump.cpp.
References Int16, int16_t, Int32, int32_t, Int64, Int8, int8_t, folly::size(), and folly::io::QueueAppender::write().
Referenced by bserEncode(), bserEncodeArray(), bserEncodeArraySimple(), bserEncodeObject(), and bserEncodeString().
|
static |
Definition at line 135 of file Dump.cpp.
References bserEncode(), bserEncodeInt(), int64_t, int8_t, folly::dynamic::items(), Object, folly::dynamic::size(), folly::bser::serialization_opts::sort_keys, and folly::io::QueueAppender::write().
Referenced by bserEncode().
|
static |
Definition at line 81 of file Dump.cpp.
References bserEncodeInt(), folly::Range< Iter >::data(), int64_t, int8_t, folly::io::detail::Writable< Derived >::push(), folly::Range< Iter >::size(), String, uint8_t, and folly::io::QueueAppender::write().
Referenced by bserEncode().
Definition at line 83 of file Load.cpp.
References folly::dynamic::array(), decodeInt(), parseBser(), folly::dynamic::push_back(), and folly::size().
Referenced by decodeTemplate(), and parseBser().
|
static |
Definition at line 173 of file Load.cpp.
References folly::Range< Iter >::at(), decodeInt(), Int16, Int32, Int64, Int8, kMagic, folly::io::detail::CursorBase< Derived, BufType >::peekBytes(), and folly::io::detail::CursorBase< Derived, BufType >::pull().
Referenced by decodePduLength(), and parseBser().
Definition at line 38 of file Load.cpp.
References Int16, int16_t, Int32, int32_t, Int64, int64_t, Int8, int8_t, folly::io::detail::CursorBase< Derived, BufType >::read(), and throwDecodeError().
Referenced by decodeArray(), decodeHeader(), decodeObject(), decodeString(), and decodeTemplate().
Definition at line 92 of file Load.cpp.
References decodeInt(), decodeString(), int8_t, folly::dynamic::object(), parseBser(), folly::io::detail::CursorBase< Derived, BufType >::read(), folly::size(), String, and throwDecodeError().
Referenced by parseBser().
size_t folly::bser::decodePduLength | ( | const folly::IOBuf * | buf | ) |
Definition at line 202 of file Load.cpp.
References decodeHeader().
Referenced by TEST().
|
static |
Definition at line 55 of file Load.cpp.
References decodeInt(), upload::dest, folly::io::detail::CursorBase< Derived, BufType >::pullAtMost(), string, and throwDecodeError().
Referenced by decodeObject(), and parseBser().
Definition at line 105 of file Load.cpp.
References Array, folly::dynamic::array(), decodeArray(), decodeInt(), int8_t, folly::gen::move, name, folly::dynamic::object(), parseBser(), folly::io::detail::CursorBase< Derived, BufType >::peekBytes(), folly::dynamic::push_back(), folly::io::detail::CursorBase< Derived, BufType >::read(), folly::size(), Skip, and folly::io::detail::CursorBase< Derived, BufType >::skipAtMost().
Referenced by parseBser().
|
static |
Definition at line 38 of file Dump.cpp.
References folly::Optional< Value >::hasValue(), folly::bser::serialization_opts::templates, and folly::Optional< Value >::value().
Referenced by bserEncodeArray().
Definition at line 136 of file Load.cpp.
References Array, decodeArray(), decodeObject(), decodeString(), decodeTemplate(), False, Int16, int16_t, Int32, int32_t, Int64, int64_t, Int8, int8_t, Null, Object, folly::io::detail::CursorBase< Derived, BufType >::pull(), folly::io::detail::CursorBase< Derived, BufType >::read(), Real, Skip, String, Template, and True.
folly::dynamic folly::bser::parseBser | ( | folly::StringPiece | str | ) |
Definition at line 219 of file Load.cpp.
References folly::Range< Iter >::data(), folly::Range< Iter >::size(), and uint8_t.
Referenced by decodeArray(), decodeObject(), decodeTemplate(), parseBser(), and TEST().
folly::dynamic folly::bser::parseBser | ( | folly::ByteRange | str | ) |
Definition at line 214 of file Load.cpp.
References folly::Range< Iter >::data(), parseBser(), folly::Range< Iter >::size(), and folly::IOBuf::wrapBuffer().
folly::dynamic folly::bser::parseBser | ( | const folly::IOBuf * | buf | ) |
Definition at line 207 of file Load.cpp.
References decodeHeader(), and parseBser().
|
static |
Definition at line 30 of file Load.cpp.
References folly::io::detail::CursorBase< Derived, BufType >::length().
Referenced by decodeInt(), decodeObject(), and decodeString().
fbstring folly::bser::toBser | ( | folly::dynamic const & | dyn, |
const serialization_opts & | opts | ||
) |
Definition at line 246 of file Dump.cpp.
References toBserIOBuf().
Referenced by TEST().
std::unique_ptr< folly::IOBuf > folly::bser::toBserIOBuf | ( | folly::dynamic const & | dyn, |
const serialization_opts & | opts | ||
) |
Definition at line 191 of file Dump.cpp.
References folly::IOBufQueue::append(), bserEncode(), folly::IOBufQueue::cacheChainLength(), folly::IOBufQueue::chainLength(), folly::IOBuf::create(), folly::bser::serialization_opts::growth_increment, Int16, int16_t, Int32, int32_t, Int64, int64_t, Int8, int8_t, kMagic, max, folly::IOBufQueue::move(), folly::gen::move, folly::IOBufQueue::prepend(), uint64_t, and uint8_t.
Referenced by toBser().
const uint8_t folly::bser::kMagic = {0, 1} |
Definition at line 28 of file Dump.cpp.
Referenced by decodeHeader(), folly::recordio_helpers::findRecord(), folly::recordio_helpers::prependHeader(), toBserIOBuf(), and folly::recordio_helpers::validateRecord().