Crashpad
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
crashpad::internal::WriteAllInternal Class Referenceabstract

The internal implementation of WriteFile() and its wrappers. More...

#include "util/file/file_io.h"

Public Member Functions

 WriteAllInternal (const WriteAllInternal &)=delete
 
WriteAllInternaloperator= (const WriteAllInternal &)=delete
 
bool WriteAll (const void *buffer, size_t size)
 Calls Write(), retrying following a short write, ensuring that exactly size bytes are written.
 

Detailed Description

The internal implementation of WriteFile() and its wrappers.

The logic is exposed so that it may be tested without requiring large files to be written. It is not intended to be used more generally. Use WriteFile(), LoggingWriteFile(), CheckedWriteFile(), or FileWriterInterface::Write() instead.

Member Function Documentation

◆ WriteAll()

bool crashpad::internal::WriteAllInternal::WriteAll ( const void * buffer,
size_t size )

Calls Write(), retrying following a short write, ensuring that exactly size bytes are written.

Returns
true on success. false if the underlying Write() fails or if fewer than size bytes were written.

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