|
| Serializer (int n=256) |
|
| Serializer (void const *data, std::size_t size) |
|
Slice | slice () const noexcept |
|
std::size_t | size () const noexcept |
|
void const * | data () const noexcept |
|
int | add8 (unsigned char i) |
|
int | add16 (std::uint16_t i) |
|
int | add32 (std::uint32_t i) |
|
int | add32 (HashPrefix p) |
|
int | add64 (std::uint64_t i) |
|
template<typename Integer > |
int | addInteger (Integer) |
|
template<std::size_t Bits, class Tag > |
int | addBitString (base_uint< Bits, Tag > const &v) |
|
int | addRaw (Blob const &vector) |
|
int | addRaw (Slice slice) |
|
int | addRaw (const void *ptr, int len) |
|
int | addRaw (const Serializer &s) |
|
int | addVL (Blob const &vector) |
|
int | addVL (Slice const &slice) |
|
template<class Iter > |
int | addVL (Iter begin, Iter end, int len) |
|
int | addVL (const void *ptr, int len) |
|
bool | get8 (int &, int offset) const |
|
template<typename Integer > |
bool | getInteger (Integer &number, int offset) |
|
template<std::size_t Bits, typename Tag = void> |
bool | getBitString (base_uint< Bits, Tag > &data, int offset) const |
|
int | addFieldID (int type, int name) |
|
int | addFieldID (SerializedTypeID type, int name) |
|
uint256 | getSHA512Half () const |
|
Blob const & | peekData () const |
|
Blob | getData () const |
|
Blob & | modData () |
|
int | getDataLength () const |
|
const void * | getDataPtr () const |
|
void * | getDataPtr () |
|
int | getLength () const |
|
std::string | getString () const |
|
void | erase () |
|
bool | chop (int num) |
|
Blob ::iterator | begin () |
|
Blob ::iterator | end () |
|
Blob ::const_iterator | begin () const |
|
Blob ::const_iterator | end () const |
|
void | reserve (size_t n) |
|
void | resize (size_t n) |
|
size_t | capacity () const |
|
bool | operator== (Blob const &v) const |
|
bool | operator!= (Blob const &v) const |
|
bool | operator== (const Serializer &v) const |
|
bool | operator!= (const Serializer &v) const |
|
template<> |
int | addInteger (unsigned char i) |
|
template<> |
int | addInteger (std::uint16_t i) |
|
template<> |
int | addInteger (std::uint32_t i) |
|
template<> |
int | addInteger (std::uint64_t i) |
|
Definition at line 39 of file Serializer.h.
◆ Serializer() [1/2]
ripple::Serializer::Serializer |
( |
int |
n = 256 | ) |
|
|
explicit |
◆ Serializer() [2/2]
ripple::Serializer::Serializer |
( |
void const * |
data, |
|
|
std::size_t |
size |
|
) |
| |
◆ slice()
Slice ripple::Serializer::slice |
( |
| ) |
const |
|
noexcept |
◆ size()
◆ data()
void const* ripple::Serializer::data |
( |
| ) |
const |
|
noexcept |
◆ add8()
int ripple::Serializer::add8 |
( |
unsigned char |
i | ) |
|
◆ add16()
◆ add32() [1/2]
◆ add32() [2/2]
◆ add64()
◆ addInteger() [1/5]
template<typename Integer >
int ripple::Serializer::addInteger |
( |
Integer |
| ) |
|
◆ addBitString()
template<std::size_t Bits, class Tag >
int ripple::Serializer::addBitString |
( |
base_uint< Bits, Tag > const & |
v | ) |
|
◆ addRaw() [1/4]
int ripple::Serializer::addRaw |
( |
Blob const & |
vector | ) |
|
◆ addRaw() [2/4]
int ripple::Serializer::addRaw |
( |
Slice |
slice | ) |
|
◆ addRaw() [3/4]
int ripple::Serializer::addRaw |
( |
const void * |
ptr, |
|
|
int |
len |
|
) |
| |
◆ addRaw() [4/4]
int ripple::Serializer::addRaw |
( |
const Serializer & |
s | ) |
|
◆ addVL() [1/4]
int ripple::Serializer::addVL |
( |
Blob const & |
vector | ) |
|
◆ addVL() [2/4]
int ripple::Serializer::addVL |
( |
Slice const & |
slice | ) |
|
◆ addVL() [3/4]
template<class Iter >
int ripple::Serializer::addVL |
( |
Iter |
begin, |
|
|
Iter |
end, |
|
|
int |
len |
|
) |
| |
◆ addVL() [4/4]
int ripple::Serializer::addVL |
( |
const void * |
ptr, |
|
|
int |
len |
|
) |
| |
◆ get8()
bool ripple::Serializer::get8 |
( |
int & |
byte, |
|
|
int |
offset |
|
) |
| const |
◆ getInteger()
template<typename Integer >
bool ripple::Serializer::getInteger |
( |
Integer & |
number, |
|
|
int |
offset |
|
) |
| |
◆ getBitString()
template<std::size_t Bits, typename Tag = void>
bool ripple::Serializer::getBitString |
( |
base_uint< Bits, Tag > & |
data, |
|
|
int |
offset |
|
) |
| const |
◆ addFieldID() [1/2]
int ripple::Serializer::addFieldID |
( |
int |
type, |
|
|
int |
name |
|
) |
| |
◆ addFieldID() [2/2]
◆ getSHA512Half()
uint256 ripple::Serializer::getSHA512Half |
( |
| ) |
const |
◆ peekData()
Blob const& ripple::Serializer::peekData |
( |
| ) |
const |
◆ getData()
Blob ripple::Serializer::getData |
( |
| ) |
const |
◆ modData()
Blob& ripple::Serializer::modData |
( |
| ) |
|
◆ getDataLength()
int ripple::Serializer::getDataLength |
( |
| ) |
const |
◆ getDataPtr() [1/2]
const void* ripple::Serializer::getDataPtr |
( |
| ) |
const |
◆ getDataPtr() [2/2]
void* ripple::Serializer::getDataPtr |
( |
| ) |
|
◆ getLength()
int ripple::Serializer::getLength |
( |
| ) |
const |
◆ getString()
◆ erase()
void ripple::Serializer::erase |
( |
| ) |
|
◆ chop()
bool ripple::Serializer::chop |
( |
int |
num | ) |
|
◆ begin() [1/2]
Blob ::iterator ripple::Serializer::begin |
( |
| ) |
|
◆ end() [1/2]
Blob ::iterator ripple::Serializer::end |
( |
| ) |
|
◆ begin() [2/2]
◆ end() [2/2]
◆ reserve()
void ripple::Serializer::reserve |
( |
size_t |
n | ) |
|
◆ resize()
void ripple::Serializer::resize |
( |
size_t |
n | ) |
|
◆ capacity()
size_t ripple::Serializer::capacity |
( |
| ) |
const |
◆ operator==() [1/2]
bool ripple::Serializer::operator== |
( |
Blob const & |
v | ) |
const |
◆ operator!=() [1/2]
bool ripple::Serializer::operator!= |
( |
Blob const & |
v | ) |
const |
◆ operator==() [2/2]
bool ripple::Serializer::operator== |
( |
const Serializer & |
v | ) |
const |
◆ operator!=() [2/2]
bool ripple::Serializer::operator!= |
( |
const Serializer & |
v | ) |
const |
◆ decodeLengthLength()
int ripple::Serializer::decodeLengthLength |
( |
int |
b1 | ) |
|
|
static |
◆ decodeVLLength() [1/3]
int ripple::Serializer::decodeVLLength |
( |
int |
b1 | ) |
|
|
static |
◆ decodeVLLength() [2/3]
int ripple::Serializer::decodeVLLength |
( |
int |
b1, |
|
|
int |
b2 |
|
) |
| |
|
static |
◆ decodeVLLength() [3/3]
int ripple::Serializer::decodeVLLength |
( |
int |
b1, |
|
|
int |
b2, |
|
|
int |
b3 |
|
) |
| |
|
static |
◆ encodeLengthLength()
int ripple::Serializer::encodeLengthLength |
( |
int |
length | ) |
|
|
staticprivate |
◆ addEncoded()
int ripple::Serializer::addEncoded |
( |
int |
length | ) |
|
|
private |
◆ addInteger() [2/5]
template<>
int ripple::Serializer::addInteger |
( |
unsigned char |
i | ) |
|
◆ addInteger() [3/5]
◆ addInteger() [4/5]
◆ addInteger() [5/5]
◆ mData
Blob ripple::Serializer::mData |
|
private |