fidl::StringView

Summary

Inheritance

Inherits from: fidl::VectorView< const char >

Constructors and Destructors

StringView()
StringView(VectorView< char > && vv)
StringView(VectorView< const char > && vv)
StringView(AnyArena & allocator, std::string_view from)
StringView(T(&) literal[N])

Public functions

Set(AnyArena & allocator, std::string_view from)
void
at(size_t offset) const
const char &
begin() const
const char *
cbegin() const
const char *
cend() const
const char *
data() const
const char *
empty() const
bool
end() const
const char *
get() const
std::string_view
is_null() const
bool
operator[](size_t offset) const
const char &
set_size(uint64_t size)
void
size() const
uint64_t

Public static functions

FromExternal(std::string_view from)
FromExternal(const char *data, size_t size)

Public functions

Set

void Set(
  AnyArena & allocator,
  std::string_view from
)

StringView

 StringView()

StringView

 StringView(
  VectorView< char > && vv
)

StringView

 StringView(
  VectorView< const char > && vv
)

StringView

 StringView(
  AnyArena & allocator,
  std::string_view from
)

StringView

constexpr StringView(
  T(&) literal[N]
)

at

const char & at(
  size_t offset
) const 

begin

const char * begin() const 

cbegin

const char * cbegin() const 

cend

const char * cend() const 

data

const char * data() const 

empty

bool empty() const 

end

const char * end() const 

get

std::string_view get() const 

is_null

bool is_null() const 

operator[]

const char & operator[](
  size_t offset
) const 

set_size

void set_size(
  uint64_t size
)

size

uint64_t size() const 

Public static functions

FromExternal

StringView FromExternal(
  std::string_view from
)

FromExternal

StringView FromExternal(
  const char *data,
  size_t size
)