Crashpad
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
crashpad::test::BufferExtensionStreamDataSource Class Referencefinal

A user extension data source that wraps a buffer. More...

#include "minidump/test/minidump_user_extension_stream_util.h"

Inheritance diagram for crashpad::test::BufferExtensionStreamDataSource:
[legend]
Collaboration diagram for crashpad::test::BufferExtensionStreamDataSource:
[legend]

Public Member Functions

 BufferExtensionStreamDataSource (uint32_t stream_type, const void *data, size_t data_size)
 Creates a data source with stream_type.
 
 BufferExtensionStreamDataSource (const BufferExtensionStreamDataSource &)=delete
 
BufferExtensionStreamDataSourceoperator= (const BufferExtensionStreamDataSource &)=delete
 
size_t StreamDataSize () override
 The size of this data stream.
 
bool ReadStreamData (Delegate *delegate) override
 Calls Delegate::UserStreamDataSourceRead(), providing it with the stream data.
 
- Public Member Functions inherited from crashpad::MinidumpUserExtensionStreamDataSource
 MinidumpUserExtensionStreamDataSource (uint32_t stream_type)
 Constructs a MinidumpUserExtensionStreamDataSource.
 
 MinidumpUserExtensionStreamDataSource (const MinidumpUserExtensionStreamDataSource &)=delete
 
MinidumpUserExtensionStreamDataSourceoperator= (const MinidumpUserExtensionStreamDataSource &)=delete
 
MinidumpStreamType stream_type () const
 

Detailed Description

A user extension data source that wraps a buffer.

Constructor & Destructor Documentation

◆ BufferExtensionStreamDataSource()

crashpad::test::BufferExtensionStreamDataSource::BufferExtensionStreamDataSource ( uint32_t stream_type,
const void * data,
size_t data_size )

Creates a data source with stream_type.

param[in] stream_type The type of the stream. param[in] data The data of the stream. param[in] data_size The length of data.

Member Function Documentation

◆ ReadStreamData()

bool crashpad::test::BufferExtensionStreamDataSource::ReadStreamData ( Delegate * delegate)
overridevirtual

Calls Delegate::UserStreamDataSourceRead(), providing it with the stream data.

Implementations do not necessarily compute the stream data prior to this method being called. The stream data may be computed or loaded lazily and may be discarded after being passed to the delegate.

Returns
false on failure, otherwise, the return value of Delegate::ExtensionStreamDataSourceRead(), which should be true on success and false on failure.

Implements crashpad::MinidumpUserExtensionStreamDataSource.

◆ StreamDataSize()

size_t crashpad::test::BufferExtensionStreamDataSource::StreamDataSize ( )
overridevirtual

The size of this data stream.

Implements crashpad::MinidumpUserExtensionStreamDataSource.


The documentation for this class was generated from the following files: