Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/nodejs/src/string_decoder-inl.h
1 #ifndef SRC_STRING_DECODER_INL_H_ 2 #define SRC_STRING_DECODER_INL_H_ 3 4 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 5 6 #include "string_decoder.h" 7 8 namespace node { 9 10 enum encoding StringDecoder::Encoding() const { 11 return static_cast<enum encoding>(state_[kEncodingField]); 12 } 13 14 unsigned StringDecoder::BufferedBytes() const { 15 return state_[kBufferedBytes]; 16 } 17 18 unsigned StringDecoder::MissingBytes() const { 19 return state_[kMissingBytes]; 20 } 21 22 char* StringDecoder::IncompleteCharacterBuffer() { 23 return reinterpret_cast<char*>(state_ + kIncompleteCharactersStart); 24 } 25 26 27 } // namespace node 28 29 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 30 31 #endif // SRC_STRING_DECODER_INL_H_