proxygen
KeyConvertTraits Struct Reference

Public Member Functions

char * operator() (const char &a)
 
char * operator() (const StringPiece a)
 

Detailed Description

Definition at line 367 of file AtomicHashArrayTest.cpp.

Member Function Documentation

char* KeyConvertTraits::operator() ( const char &  a)
inline

Definition at line 368 of file AtomicHashArrayTest.cpp.

368  {
369  return strndup(&a, 1);
370  }
char a
char* KeyConvertTraits::operator() ( const StringPiece  a)
inline

Definition at line 371 of file AtomicHashArrayTest.cpp.

References folly::Range< Iter >::begin(), int64_t, and folly::Range< Iter >::size().

371  {
372  return strndup(a.begin(), a.size());
373  }
constexpr size_type size() const
Definition: Range.h:431
constexpr Iter begin() const
Definition: Range.h:452

The documentation for this struct was generated from the following file: