#include <scoped_bstr.h>
Public Member Functions | |
| ScopedBstr ()=default | |
| ScopedBstr (std::wstring_view non_bstr) | |
| ~ScopedBstr () | |
| BSTR | Get () const |
| void | Reset (BSTR bstr=nullptr) |
| BSTR | Release () |
| BSTR | Allocate (std::wstring_view str) |
| BSTR | AllocateBytes (size_t bytes) |
| void | SetByteLen (size_t bytes) |
| void | Swap (ScopedBstr &bstr2) |
| BSTR * | Receive () |
| size_t | Length () const |
| size_t | ByteLength () const |
| bool | operator== (const ScopedBstr &bstr2) const =delete |
| bool | operator!= (const ScopedBstr &bstr2) const =delete |
Definition at line 22 of file scoped_bstr.h.
|
default |
Referenced by ~ScopedBstr().
|
explicit |
Definition at line 34 of file scoped_bstr.cc.
| base::win::ScopedBstr::~ScopedBstr | ( | ) |
Definition at line 37 of file scoped_bstr.cc.
References ScopedBstr().
| BSTR base::win::ScopedBstr::Allocate | ( | std::wstring_view | str | ) |
Definition at line 67 of file scoped_bstr.cc.
References Reset().
| BSTR base::win::ScopedBstr::AllocateBytes | ( | size_t | bytes | ) |
Definition at line 72 of file scoped_bstr.cc.
References Reset().
| size_t base::win::ScopedBstr::ByteLength | ( | ) | const |
Definition at line 87 of file scoped_bstr.cc.
|
inline |
Definition at line 33 of file scoped_bstr.h.
Referenced by base::win::TEST(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
| size_t base::win::ScopedBstr::Length | ( | ) | const |
Definition at line 83 of file scoped_bstr.cc.
Referenced by base::win::TEST(), and ui::TEST_F().
|
delete |
|
delete |
| BSTR * base::win::ScopedBstr::Receive | ( | ) |
Definition at line 62 of file scoped_bstr.cc.
References BASE_DCHECK.
Referenced by ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
| BSTR base::win::ScopedBstr::Release | ( | ) |
Definition at line 50 of file scoped_bstr.cc.
Referenced by base::win::TEST(), and ui::TEST_F().
| void base::win::ScopedBstr::Reset | ( | BSTR | bstr = nullptr | ) |
Definition at line 42 of file scoped_bstr.cc.
Referenced by Allocate(), AllocateBytes(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
| void base::win::ScopedBstr::SetByteLen | ( | size_t | bytes | ) |
Definition at line 77 of file scoped_bstr.cc.
References BASE_DCHECK, and data.
| void base::win::ScopedBstr::Swap | ( | ScopedBstr & | bstr2 | ) |
Definition at line 56 of file scoped_bstr.cc.
Referenced by base::win::TEST().