A display for a fixed length binary data field.
More...
#include <dumper.h>
|
|
| BlobDisplay (size_t width, std::shared_ptr< Display< std::string > > secondary_display=nullptr) |
| |
|
bool | IsMissing (std::tuple< std::vector< uint8_t > > &values) override |
| |
|
void | DisplayValue (Dumper &dump, std::tuple< std::vector< uint8_t > > values) override |
| |
|
bool | IsMissing (std::tuple< offset_t > &values) |
| |
|
void | DisplayValue (Dumper &dump, std::tuple< offset_t > values) |
| |
|
virtual bool | IsMissing (std::tuple< Ts... > &values) |
| | Returns true if the specified value is such that it should not be displayed.
|
| |
|
virtual void | DisplayValue (Dumper &dump, std::tuple< Ts... > values)=0 |
| | Prints the value through the Dumper, different types of fields can be displayed in different ways.
|
| |
|
|
offset_t | width |
| | The width of the string field, exactly this many characters will be shown, unless it is offset_t(-1), then it prints until the first null byte.
|
| |
|
std::shared_ptr< Display< std::string > > | secondary_display |
| | Alternative representation, appearing after the value.
|
| |
A display for a fixed length binary data field.
◆ Make()
| static std::shared_ptr< BlobDisplay > Dumper::BlobDisplay::Make |
( |
size_t |
width, |
|
|
std::shared_ptr< Display< std::string > > |
secondary_display = nullptr |
|
) |
| |
|
inlinestatic |
Create a binary blob display.
- Parameters
-
| [in] | width | The exact number of characters to display |
| [in] | open_quote | String to prefix to the string |
| [in] | close_quote | String to sufffix to the string |
- Returns
- A string display
The documentation for this class was generated from the following files:
- src/dumper/dumper.h
- src/dumper/dumper.cc