Namespaces

Enumerations

enum class StructuredStringType
Name Value
enum class WireType : uint64_t
Name Value
kVarint 0
k64Bit 1
kLengthDelimited 2
k32Bit 5

Defined at line 181 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

Records

Functions

  • size_t BufferSizeForStructuredProtoField (StructuredProtoField field)

    Estimates the number of bytes needed to encode `field` using

    protobuf encoding.

    The returned value might be larger than the actual number of bytes needed.

    Defined at line 67 of file ../../third_party/abseil-cpp/src/absl/log/internal/structured_proto.h

  • const absl::Status * _Nonnull AsStatus (const absl::Status & s)

    Convert a Status or a StatusOr to its underlying status value.

    (This implementation does not require a dep on absl::Status to work.)

    Defined at line 189 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • template <typename T>
    const absl::Status * _Nonnull AsStatus (const absl::StatusOr<T> & s)

    Defined at line 193 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • void AbortQuietly ()

    Helper routines to abort the application quietly

    Defined at line 241 of file ../../third_party/abseil-cpp/src/absl/log/internal/conditions.h

  • bool EncodeVarint (uint64_t tag, uint64_t value, absl::Span<char> * buf)

    Encodes the specified integer as a varint field and returns true if it fits.

    Used for int32_t, int64_t, uint32_t, uint64_t, bool, and enum field types.

    Consumes up to kMaxVarintSize * 2 bytes (20).

  • bool Encode64Bit (uint64_t tag, uint64_t value, absl::Span<char> * buf)

    Encodes the specified integer as a 64-bit field and returns true if it fits.

    Used for fixed64 and sfixed64 field types.

    Consumes up to kMaxVarintSize + 8 bytes (18).

  • bool Encode32Bit (uint64_t tag, uint32_t value, absl::Span<char> * buf)

    Encodes the specified integer as a 32-bit field and returns true if it fits.

    Used for fixed32 and sfixed32 field types.

    Consumes up to kMaxVarintSize + 4 bytes (14).

  • absl::Span<char> EncodeMessageStart (uint64_t tag, uint64_t max_size, absl::Span<char> * buf)

    Encodes the header for a length-delimited field containing up to `max_size`

    bytes or the number remaining in the buffer, whichever is less. If the

    header fits, a non-nullptr `Span` is returned; this must be passed to

    `EncodeMessageLength` after all contents are encoded to finalize the length

    field. If the header does not fit, a nullptr `Span` is returned which is

    safe to pass to `EncodeMessageLength` but need not be.

    Used for string, bytes, message, and packed-repeated field type.

    Consumes up to kMaxVarintSize * 2 bytes (20).

  • void EncodeMessageLength (absl::Span<char> msg, const absl::Span<char> * buf)

    Finalizes the length field in `msg` so that it encompasses all data encoded

    since the call to `EncodeMessageStart` which returned `msg`. Does nothing if

    `msg` is a `nullptr` `Span`.

  • bool EncodeVarint (uint64_t tag, int64_t value, absl::Span<char> * buf)

    Defined at line 73 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • bool EncodeVarint (uint64_t tag, uint32_t value, absl::Span<char> * buf)

    Defined at line 76 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • bool EncodeVarint (uint64_t tag, int32_t value, absl::Span<char> * buf)

    Defined at line 79 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • template <typename T>
    NullStream & operator<< (NullStream & str, const T & )

    Defined at line 85 of file ../../third_party/abseil-cpp/src/absl/log/internal/nullstream.h

  • bool EncodeVarintZigZag (uint64_t tag, int64_t value, absl::Span<char> * buf)

    Encodes the specified integer as a varint field using ZigZag encoding and

    returns true if it fits.

    Used for sint32 and sint64 field types.

    Consumes up to kMaxVarintSize * 2 bytes (20).

    Defined at line 87 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • NullStream & operator<< (NullStream & str, std::ostream &(*)(std::ostream &) )

    Defined at line 88 of file ../../third_party/abseil-cpp/src/absl/log/internal/nullstream.h

  • NullStream & operator<< (NullStream & str, std::ios_base &(*)(std::ios_base &) )

    Defined at line 92 of file ../../third_party/abseil-cpp/src/absl/log/internal/nullstream.h

  • bool Encode64Bit (uint64_t tag, int64_t value, absl::Span<char> * buf)

    Defined at line 98 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • bool Encode64Bit (uint64_t tag, uint32_t value, absl::Span<char> * buf)

    Defined at line 101 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • bool Encode64Bit (uint64_t tag, int32_t value, absl::Span<char> * buf)

    Defined at line 104 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • bool EncodeDouble (uint64_t tag, double value, absl::Span<char> * buf)

    Encodes the specified double as a 64-bit field and returns true if it fits.

    Used for double field type.

    Consumes up to kMaxVarintSize + 8 bytes (18).

    Defined at line 111 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • bool Encode32Bit (uint64_t tag, int32_t value, absl::Span<char> * buf)

    Defined at line 119 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • bool EncodeBytes (uint64_t tag, absl::Span<const char> value, absl::Span<char> * buf)

    Encodes the specified bytes as a length-delimited field and returns true if

    they fit.

    Used for string, bytes, message, and packed-repeated field type.

    Consumes up to kMaxVarintSize * 2 + value.size() bytes (20 + value.size()).

  • bool EncodeBytesTruncate (uint64_t tag, absl::Span<const char> value, absl::Span<char> * buf)

    Encodes as many of the specified bytes as will fit as a length-delimited

    field and returns true as long as the field header (`tag_type` and `length`)

    fits.

    Used for string, bytes, message, and packed-repeated field type.

    Consumes up to kMaxVarintSize * 2 + value.size() bytes (20 + value.size()).

  • bool EncodeFloat (uint64_t tag, float value, absl::Span<char> * buf)

    Encodes the specified float as a 32-bit field and returns true if it fits.

    Used for float field type.

    Consumes up to kMaxVarintSize + 4 bytes (14).

    Defined at line 126 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • bool EncodeString (uint64_t tag, absl::string_view value, absl::Span<char> * buf)

    Encodes the specified string as a length-delimited field and returns true if

    it fits.

    Used for string, bytes, message, and packed-repeated field type.

    Consumes up to kMaxVarintSize * 2 + value.size() bytes (20 + value.size()).

    Defined at line 149 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • bool EncodeStringTruncate (uint64_t tag, absl::string_view value, absl::Span<char> * buf)

    Encodes as much of the specified string as will fit as a length-delimited

    field and returns true as long as the field header (`tag_type` and `length`)

    fits.

    Used for string, bytes, message, and packed-repeated field type.

    Consumes up to kMaxVarintSize * 2 + value.size() bytes (20 + value.size()).

    Defined at line 159 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • size_t VarintSize (uint64_t value)

    Defined at line 188 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • size_t MinVarintSize ()

    Defined at line 191 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • size_t MaxVarintSize ()

    Defined at line 194 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • uint64_t MaxVarintForSize (size_t size)

    Defined at line 198 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • uint64_t MakeTagType (uint64_t tag, WireType type)

    Defined at line 202 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • size_t BufferSizeFor (uint64_t tag, WireType type)

    `BufferSizeFor` returns a number of bytes guaranteed to be sufficient to

    store encoded fields as `(tag, WireType)`, regardless of data values. This

    only makes sense for `WireType::kLengthDelimited` if you add in the length of

    the contents yourself, e.g. for string and bytes fields by adding the lengths

    of any encoded strings to the return value or for submessage fields by

    enumerating the fields you may encode into their contents.

    Defined at line 212 of file ../../third_party/abseil-cpp/src/absl/log/internal/proto.h

  • template <typename T>
    void MakeCheckOpValueString (std::ostream & os, const T & v)

    This formats a value for a failing `CHECK_XX` statement. Ordinarily, it uses

    the definition for `operator

    <

    <

    `, with a few special cases below.

    Defined at line 218 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • void ExitQuietly ()

    Defined at line 242 of file ../../third_party/abseil-cpp/src/absl/log/internal/conditions.h

  • void AbslFormatFlush (StringifySink * _Nonnull sink, absl::string_view v)

    For types that implement `AbslStringify` using `absl::Format()`.

    Defined at line 326 of file ../../third_party/abseil-cpp/src/absl/log/internal/log_message.h

  • bool EncodeStructuredProtoField (StructuredProtoField field, absl::Span<char> & buf)

    Encodes `field` into `buf` using protobuf encoding.

    On success, returns `true` and advances `buf` to the end of

    the bytes consumed.

    On failure (if `buf` was too small), returns `false`.

  • template <typename T>
    bool IsCharStarOrVoidStar ()

    If the comparison will happen as pointers, decay `char*` arguments to `void*`

    when printing them. There is no evidence that they are a NULL terminated

    C-String so printing them as such could lead to UB, and more importantly we

    compared pointers so showing the pointers is a better result.

    Defined at line 406 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • void MakeCheckOpValueString (std::ostream & os, char v)

    Overloads for char types provide readable values for unprintable characters.

  • void MakeCheckOpValueString (std::ostream & os, signed char v)
  • void MakeCheckOpValueString (std::ostream & os, unsigned char v)
  • void MakeCheckOpValueString (std::ostream & os, const void * _Nullable p)
  • std::ostream & operator<< (std::ostream & os, UnprintableWrapper )
  • template <typename T1, typename T2>
    const char * _Nonnull MakeCheckOpString (T1 v1, T2 v2, const char * _Nonnull exprtext)

    Build the error message string. Specify no inlining for code size.

    Defined at line 432 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • template <, >
    const char * _Nullable Check_EQImpl (const T1 & v1, const T2 & v2, const char * _Nonnull exprtext)

    Defined at line 502 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • const char * _Nullable Check_EQImpl (int v1, int v2, const char * _Nonnull exprtext)

    Defined at line 502 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • template <, >
    const char * _Nullable Check_NEImpl (const T1 & v1, const T2 & v2, const char * _Nonnull exprtext)

    Defined at line 503 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • const char * _Nullable Check_NEImpl (int v1, int v2, const char * _Nonnull exprtext)

    Defined at line 503 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • template <, >
    const char * _Nullable Check_LEImpl (const T1 & v1, const T2 & v2, const char * _Nonnull exprtext)

    Defined at line 504 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • const char * _Nullable Check_LEImpl (int v1, int v2, const char * _Nonnull exprtext)

    Defined at line 504 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • template <, >
    const char * _Nullable Check_LTImpl (const T1 & v1, const T2 & v2, const char * _Nonnull exprtext)

    Defined at line 505 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • const char * _Nullable Check_LTImpl (int v1, int v2, const char * _Nonnull exprtext)

    Defined at line 505 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • template <, >
    const char * _Nullable Check_GEImpl (const T1 & v1, const T2 & v2, const char * _Nonnull exprtext)

    Defined at line 506 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • const char * _Nullable Check_GEImpl (int v1, int v2, const char * _Nonnull exprtext)

    Defined at line 506 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • template <, >
    const char * _Nullable Check_GTImpl (const T1 & v1, const T2 & v2, const char * _Nonnull exprtext)

    Defined at line 507 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • const char * _Nullable Check_GTImpl (int v1, int v2, const char * _Nonnull exprtext)

    Defined at line 507 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • const char * _Nullable CheckstrcmptrueImpl (const char * _Nullable s1, const char * _Nullable s2, const char * _Nonnull exprtext)
  • const char * _Nullable CheckstrcmpfalseImpl (const char * _Nullable s1, const char * _Nullable s2, const char * _Nonnull exprtext)
  • const char * _Nullable CheckstrcasecmptrueImpl (const char * _Nullable s1, const char * _Nullable s2, const char * _Nonnull exprtext)
  • const char * _Nullable CheckstrcasecmpfalseImpl (const char * _Nullable s1, const char * _Nullable s2, const char * _Nonnull exprtext)
  • template <typename T>
    const T & GetReferenceableValue (const T & t)

    `CHECK_EQ` and friends want to pass their arguments by reference, however

    this winds up exposing lots of cases where people have defined and

    initialized static const data members but never declared them (i.e. in a .cc

    file), meaning they are not referenceable. This function avoids that problem

    for integers (the most common cases) by overloading for every primitive

    integer type, even the ones we discourage, and returning them by value.

    NOLINTBEGIN(runtime/int)

    NOLINTBEGIN(google-runtime-int)

    Defined at line 533 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • char GetReferenceableValue (char t)

    Defined at line 536 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • unsigned char GetReferenceableValue (unsigned char t)

    Defined at line 537 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • signed char GetReferenceableValue (signed char t)

    Defined at line 540 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • short GetReferenceableValue (short t)

    Defined at line 541 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • unsigned short GetReferenceableValue (unsigned short t)

    Defined at line 542 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • int GetReferenceableValue (int t)

    Defined at line 545 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • unsigned int GetReferenceableValue (unsigned int t)

    Defined at line 546 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • long GetReferenceableValue (long t)

    Defined at line 549 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • unsigned long GetReferenceableValue (unsigned long t)

    Defined at line 550 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • long long GetReferenceableValue (long long t)

    Defined at line 553 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • unsigned long long GetReferenceableValue (unsigned long long t)

    Defined at line 554 of file ../../third_party/abseil-cpp/src/absl/log/internal/check_op.h

  • int RegisterAndInitialize (VLogSite * _Nonnull v)

    Registers a site `v` to get updated as `vmodule` and `v` change. Also

    initializes the site based on their current values, and returns that result.

    Does not allocate memory.

  • void UpdateVLogSites ()

    Allocates memory.

  • int VLogLevel (absl::string_view file)

    Returns the current verbose log level of `file`.

    Does not allocate memory.

  • void UpdateVModule (absl::string_view vmodule)

    Completely overwrites the saved value of `vmodule`.

    Allocates memory.

  • int UpdateGlobalVLogLevel (int v)

    Updates the global verbosity level to `v` and returns the prior value.

    Allocates memory.

  • int PrependVModule (absl::string_view module_pattern, int log_level)

    Atomically prepends `module_pattern=log_level` to the start of vmodule.

    Returns the prior value for `module_pattern` if there was an exact match and

    `global_v` otherwise.

    Allocates memory.

  • void OnVLogVerbosityUpdate (std::function<void ()> cb)

    Registers `on_update` to be called whenever `v` or `vmodule` change.

    Allocates memory.

  • VLogSite * _Nullable SetVModuleListHeadForTestOnly (VLogSite * _Nullable v)

    Does not allocate memory.

Variables

const std::array<char, 7> kCharNull
const std::array<signed char, 7> kSignedCharNull
const std::array<unsigned char, 7> kUnsignedCharNull