The writer for a MinidumpRVAList object in a minidump file, containing a list of MinidumpStringWriterType objects. More...
#include "minidump/minidump_string_writer.h"
Public Member Functions | |
| MinidumpStringListWriter (const MinidumpStringListWriter &)=delete | |
| MinidumpStringListWriter & | operator= (const MinidumpStringListWriter &)=delete |
| void | InitializeFromVector (const std::vector< std::string > &vector) |
| Adds a new Traits::MinidumpStringWriterType for each element in vector to the MinidumpRVAList. | |
| void | AddStringUTF8 (const std::string &string_utf8) |
| Creates a new Traits::MinidumpStringWriterType object and adds it to the MinidumpRVAList. | |
| bool | IsUseful () const |
| Determines whether the object is useful. | |
Public Member Functions inherited from crashpad::internal::MinidumpWritable | |
| MinidumpWritable (const MinidumpWritable &)=delete | |
| MinidumpWritable & | operator= (const MinidumpWritable &)=delete |
| virtual bool | WriteEverything (FileWriterInterface *file_writer) |
| Writes an object and all of its children to a minidump file. | |
| void | RegisterRVA (RVA *rva) |
| Registers a file offset pointer as one that should point to the object on which this method is called. | |
| void | RegisterRVA (RVA64 *rva) |
| void | RegisterLocationDescriptor (MINIDUMP_LOCATION_DESCRIPTOR *location_descriptor) |
| Registers a location descriptor as one that should point to the object on which this method is called. | |
| void | RegisterLocationDescriptor (MINIDUMP_LOCATION_DESCRIPTOR64 *location_descriptor64) |
Additional Inherited Members | |
Protected Types inherited from crashpad::internal::MinidumpWritable | |
| enum | State |
| Identifies the state of an object. More... | |
| enum | Phase |
| Identifies the phase during which an object will be written to a minidump file. More... | |
Protected Member Functions inherited from crashpad::internal::MinidumpRVAListWriter | |
| MinidumpRVAListWriter (const MinidumpRVAListWriter &)=delete | |
| MinidumpRVAListWriter & | operator= (const MinidumpRVAListWriter &)=delete |
| void | AddChild (std::unique_ptr< MinidumpWritable > child) |
| Adds an RVA referencing an MinidumpWritable to the MinidumpRVAList. | |
| bool | IsEmpty () const |
Returns true if no child objects have been added by AddChild(), and false if child objects are present. | |
| const std::vector< RVA > & | child_rvas () const |
| Returns an object’s RVA objects referencing its children. | |
| bool | Freeze () override |
| Transitions the object from kStateMutable to kStateFrozen. | |
| size_t | SizeOfObject () override |
| Returns the amount of space that this object will consume when written to a minidump file, in bytes, not including any leading or trailing padding necessary to maintain proper alignment. | |
| std::vector< MinidumpWritable * > | Children () override |
| Returns the object’s children. | |
| bool | WriteObject (FileWriterInterface *file_writer) override |
| Writes the object’s content. | |
Protected Member Functions inherited from crashpad::internal::MinidumpWritable | |
| State | state () const |
| The state of the object. | |
| virtual size_t | Alignment () |
| Returns the object’s desired byte-boundary alignment. | |
| virtual Phase | WritePhase () |
| Returns the object’s desired write phase. | |
| size_t | WillWriteAtOffset (Phase phase, FileOffset *offset, std::vector< MinidumpWritable * > *write_sequence) |
| Prepares the object to be written at a known file offset, transitioning it from kStateFrozen to kStateWritable. | |
| virtual bool | WillWriteAtOffsetImpl (FileOffset offset) |
| Called once an object’s writable file offset is determined, as it transitions into kStateWritable. | |
| bool | WritePaddingAndObject (FileWriterInterface *file_writer) |
| Writes the object, transitioning it from kStateWritable to kStateWritten. | |
Static Protected Attributes inherited from crashpad::internal::MinidumpWritable | |
| static constexpr size_t | kInvalidSize = std::numeric_limits<size_t>::max() |
A size value used to signal failure by methods that return size_t. | |
The writer for a MinidumpRVAList object in a minidump file, containing a list of MinidumpStringWriterType objects.
| void crashpad::internal::MinidumpStringListWriter< MinidumpStringWriterType >::AddStringUTF8 | ( | const std::string & | string_utf8 | ) |
Creates a new Traits::MinidumpStringWriterType object and adds it to the MinidumpRVAList.
This object creates a new string writer with string value string_utf8, takes ownership of it, and becomes its parent in the overall tree of MinidumpWritable objects.
| void crashpad::internal::MinidumpStringListWriter< MinidumpStringWriterType >::InitializeFromVector | ( | const std::vector< std::string > & | vector | ) |
Adds a new Traits::MinidumpStringWriterType for each element in vector to the MinidumpRVAList.
| [in] | vector | The vector to use as source data. Each string in the vector is treated as a UTF-8 string, and a new string writer will be created for each one and made a child of the MinidumpStringListWriter. |
| bool crashpad::internal::MinidumpStringListWriter< MinidumpStringWriterType >::IsUseful | ( | ) | const |
Determines whether the object is useful.
A useful object is one that carries data that makes a meaningful contribution to a minidump file. An object carrying entries would be considered useful.
true if the object is useful, false otherwise.