MCPcopy Create free account
hub / github.com/apache/brpc / data

Method data

src/butil/strings/string_piece.h:208–208  ·  view source on GitHub ↗

data() may return a pointer to a buffer with embedded NULs, and the returned buffer may or may not be null terminated. Therefore it is typically a mistake to pass data() to a routine that expects a NUL terminated string.

Source from the content-addressed store, hash-verified

206 // typically a mistake to pass data() to a routine that expects a NUL
207 // terminated string.
208 const value_type* data() const { return ptr_; }
209 size_type size() const { return length_; }
210 size_type length() const { return length_; }
211 bool empty() const { return length_ == 0; }

Callers 15

HashFunction · 0.45
cut_untilMethod · 0.45
appendMethod · 0.45
try_next_blockMethod · 0.45
copy_and_forwardMethod · 0.45
ReadCommandLineFunction · 0.45
Log2FileFunction · 0.45
LogInfoToLogStrFunction · 0.45
OutputLogFunction · 0.45
OnLogMessageMethod · 0.45
VLogSiteMethod · 0.45
set_errorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected