mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Add isUseful.
This commit is contained in:
@@ -92,6 +92,7 @@ public:
|
|||||||
|
|
||||||
bool isGeneric() const { return fieldCode == 0; }
|
bool isGeneric() const { return fieldCode == 0; }
|
||||||
bool isInvalid() const { return fieldCode == -1; }
|
bool isInvalid() const { return fieldCode == -1; }
|
||||||
|
bool isUseful() const { return fieldCode > 0; }
|
||||||
bool isKnown() const { return fieldType != STI_UNKNOWN; }
|
bool isKnown() const { return fieldType != STI_UNKNOWN; }
|
||||||
bool isBinary() const { return fieldValue < 256; }
|
bool isBinary() const { return fieldValue < 256; }
|
||||||
bool isDiscardable() const { return fieldValue > 256; }
|
bool isDiscardable() const { return fieldValue > 256; }
|
||||||
|
|||||||
Reference in New Issue
Block a user