5#ifndef BASE_WIN_SCOPED_BSTR_H_
6#define BASE_WIN_SCOPED_BSTR_H_
30 explicit ScopedBstr(std::wstring_view non_bstr);
33 BSTR
Get()
const {
return bstr_; }
37 void Reset(BSTR bstr =
nullptr);
48 BSTR
Allocate(std::wstring_view str);
52 BSTR AllocateBytes(
size_t bytes);
65 void SetByteLen(
size_t bytes);
77 size_t Length()
const;
80 size_t ByteLength()
const;
bool operator!=(const ScopedBstr &bstr2) const =delete
bool operator==(const ScopedBstr &bstr2) const =delete
static void * Allocate(uword size, Zone *zone)
#define BASE_DISALLOW_COPY_AND_ASSIGN(TypeName)