mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Code improvements:
A way to avoid duplicate field indexes that Arthur came up with. Abstract out code to create individual fields. Field index operations. Flag operations. Optional field operations.
This commit is contained in:
@@ -49,12 +49,15 @@ public:
|
||||
void setSequence(uint32);
|
||||
|
||||
// inner transaction field functions
|
||||
int getITFieldIndex(const char *) const;
|
||||
int getITFieldIndex(SOE_Field field) const;
|
||||
int getITFieldCount() const;
|
||||
bool getITFieldPresent(int index) const;
|
||||
const SerializedType& peekITField(int index);
|
||||
SerializedType& getITField(int index);
|
||||
void makeITFieldPresent(int index);
|
||||
const SerializedType& peekITField(SOE_Field field);
|
||||
SerializedType& getITField(SOE_Field field);
|
||||
|
||||
// optional field functions
|
||||
bool getITFieldPresent(SOE_Field field) const;
|
||||
void makeITFieldPresent(SOE_Field field);
|
||||
void makeITFieldAbsent(SOE_Field field);
|
||||
|
||||
// whole transaction functions
|
||||
int getTransaction(Serializer& s, bool include_length) const;
|
||||
|
||||
Reference in New Issue
Block a user