Coverage Report

Created: 2020-02-25 14:32

/Users/buildslave/jenkins/workspace/coverage/llvm-project/libcxx/include/streambuf
Line
Count
Source (jump to first uncovered line)
1
// -*- C++ -*-
2
//===------------------------- streambuf ----------------------------------===//
3
//
4
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
// See https://llvm.org/LICENSE.txt for license information.
6
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
//
8
//===----------------------------------------------------------------------===//
9
10
#ifndef _LIBCPP_STEAMBUF
11
#define _LIBCPP_STEAMBUF
12
13
/*
14
    streambuf synopsis
15
16
namespace std
17
{
18
19
template <class charT, class traits = char_traits<charT> >
20
class basic_streambuf
21
{
22
public:
23
    // types:
24
    typedef charT char_type;
25
    typedef traits traits_type;
26
    typedef typename traits_type::int_type int_type;
27
    typedef typename traits_type::pos_type pos_type;
28
    typedef typename traits_type::off_type off_type;
29
30
    virtual ~basic_streambuf();
31
32
    // 27.6.2.2.1 locales:
33
    locale pubimbue(const locale& loc);
34
    locale getloc() const;
35
36
    // 27.6.2.2.2 buffer and positioning:
37
    basic_streambuf* pubsetbuf(char_type* s, streamsize n);
38
    pos_type pubseekoff(off_type off, ios_base::seekdir way,
39
                        ios_base::openmode which = ios_base::in | ios_base::out);
40
    pos_type pubseekpos(pos_type sp,
41
                        ios_base::openmode which = ios_base::in | ios_base::out);
42
    int pubsync();
43
44
    // Get and put areas:
45
    // 27.6.2.2.3 Get area:
46
    streamsize in_avail();
47
    int_type snextc();
48
    int_type sbumpc();
49
    int_type sgetc();
50
    streamsize sgetn(char_type* s, streamsize n);
51
52
    // 27.6.2.2.4 Putback:
53
    int_type sputbackc(char_type c);
54
    int_type sungetc();
55
56
    // 27.6.2.2.5 Put area:
57
    int_type sputc(char_type c);
58
    streamsize sputn(const char_type* s, streamsize n);
59
60
protected:
61
    basic_streambuf();
62
    basic_streambuf(const basic_streambuf& rhs);
63
    basic_streambuf& operator=(const basic_streambuf& rhs);
64
    void swap(basic_streambuf& rhs);
65
66
    // 27.6.2.3.2 Get area:
67
    char_type* eback() const;
68
    char_type* gptr() const;
69
    char_type* egptr() const;
70
    void gbump(int n);
71
    void setg(char_type* gbeg, char_type* gnext, char_type* gend);
72
73
    // 27.6.2.3.3 Put area:
74
    char_type* pbase() const;
75
    char_type* pptr() const;
76
    char_type* epptr() const;
77
    void pbump(int n);
78
    void setp(char_type* pbeg, char_type* pend);
79
80
    // 27.6.2.4 virtual functions:
81
    // 27.6.2.4.1 Locales:
82
    virtual void imbue(const locale& loc);
83
84
    // 27.6.2.4.2 Buffer management and positioning:
85
    virtual basic_streambuf* setbuf(char_type* s, streamsize n);
86
    virtual pos_type seekoff(off_type off, ios_base::seekdir way,
87
                             ios_base::openmode which = ios_base::in | ios_base::out);
88
    virtual pos_type seekpos(pos_type sp,
89
                             ios_base::openmode which = ios_base::in | ios_base::out);
90
    virtual int sync();
91
92
    // 27.6.2.4.3 Get area:
93
    virtual streamsize showmanyc();
94
    virtual streamsize xsgetn(char_type* s, streamsize n);
95
    virtual int_type underflow();
96
    virtual int_type uflow();
97
98
    // 27.6.2.4.4 Putback:
99
    virtual int_type pbackfail(int_type c = traits_type::eof());
100
101
    // 27.6.2.4.5 Put area:
102
    virtual streamsize xsputn(const char_type* s, streamsize n);
103
    virtual int_type overflow (int_type c = traits_type::eof());
104
};
105
106
}  // std
107
108
*/
109
110
#include <__config>
111
#include <iosfwd>
112
#include <ios>
113
114
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
115
#pragma GCC system_header
116
#endif
117
118
_LIBCPP_PUSH_MACROS
119
#include <__undef_macros>
120
121
_LIBCPP_BEGIN_NAMESPACE_STD
122
123
template <class _CharT, class _Traits>
124
class _LIBCPP_TEMPLATE_VIS basic_streambuf
125
{
126
public:
127
    // types:
128
    typedef _CharT                         char_type;
129
    typedef _Traits                        traits_type;
130
    typedef typename traits_type::int_type int_type;
131
    typedef typename traits_type::pos_type pos_type;
132
    typedef typename traits_type::off_type off_type;
133
134
    static_assert((is_same<_CharT, typename traits_type::char_type>::value),
135
                  "traits_type::char_type must be the same type as CharT");
136
137
    virtual ~basic_streambuf();
138
139
    // 27.6.2.2.1 locales:
140
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
141
0
    locale pubimbue(const locale& __loc) {
142
0
        imbue(__loc);
143
0
        locale __r = __loc_;
144
0
        __loc_ = __loc;
145
0
        return __r;
146
0
    }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::pubimbue(std::__1::locale const&)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::pubimbue(std::__1::locale const&)
147
148
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
149
31.0k
    locale getloc() const { return __loc_; }
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::getloc() const
Line
Count
Source
149
15.5k
    locale getloc() const { return __loc_; }
std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::getloc() const
Line
Count
Source
149
15.4k
    locale getloc() const { return __loc_; }
150
151
    // 27.6.2.2.2 buffer and positioning:
152
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
153
    basic_streambuf* pubsetbuf(char_type* __s, streamsize __n)
154
0
    { return setbuf(__s, __n); }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::pubsetbuf(char*, long)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::pubsetbuf(wchar_t*, long)
155
156
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
157
    pos_type pubseekoff(off_type __off, ios_base::seekdir __way,
158
                        ios_base::openmode __which = ios_base::in | ios_base::out)
159
0
    { return seekoff(__off, __way, __which); }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::pubseekoff(long long, std::__1::ios_base::seekdir, unsigned int)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::pubseekoff(long long, std::__1::ios_base::seekdir, unsigned int)
160
161
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
162
    pos_type pubseekpos(pos_type __sp,
163
                        ios_base::openmode __which = ios_base::in | ios_base::out)
164
0
    { return seekpos(__sp, __which); }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::pubseekpos(std::__1::fpos<__mbstate_t>, unsigned int)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::pubseekpos(std::__1::fpos<__mbstate_t>, unsigned int)
165
166
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
167
20.6k
    int pubsync() { return sync(); }
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::pubsync()
Line
Count
Source
167
10.3k
    int pubsync() { return sync(); }
std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::pubsync()
Line
Count
Source
167
10.3k
    int pubsync() { return sync(); }
168
169
    // Get and put areas:
170
    // 27.6.2.2.3 Get area:
171
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
172
0
    streamsize in_avail() {
173
0
        if (__ninp_ < __einp_)
174
0
            return static_cast<streamsize>(__einp_ - __ninp_);
175
0
        return showmanyc();
176
0
    }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::in_avail()
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::in_avail()
177
178
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
179
0
    int_type snextc() {
180
0
        if (sbumpc() == traits_type::eof())
181
0
            return traits_type::eof();
182
0
        return sgetc();
183
0
    }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::snextc()
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::snextc()
184
185
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
186
2.18M
    int_type sbumpc() {
187
2.18M
        if (__ninp_ == __einp_)
188
2.17M
            return uflow();
189
12.8k
        return traits_type::to_int_type(*__ninp_++);
190
12.8k
    }
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::sbumpc()
Line
Count
Source
186
2.18M
    int_type sbumpc() {
187
2.18M
        if (__ninp_ == __einp_)
188
2.17M
            return uflow();
189
12.8k
        return traits_type::to_int_type(*__ninp_++);
190
12.8k
    }
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::sbumpc()
191
192
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
193
4.48k
    int_type sgetc() {
194
4.48k
        if (__ninp_ == __einp_)
195
19
            return underflow();
196
4.46k
        return traits_type::to_int_type(*__ninp_);
197
4.46k
    }
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::sgetc()
Line
Count
Source
193
4.48k
    int_type sgetc() {
194
4.48k
        if (__ninp_ == __einp_)
195
19
            return underflow();
196
4.46k
        return traits_type::to_int_type(*__ninp_);
197
4.46k
    }
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::sgetc()
198
199
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
200
    streamsize sgetn(char_type* __s, streamsize __n)
201
0
    { return xsgetn(__s, __n); }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::sgetn(char*, long)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::sgetn(wchar_t*, long)
202
203
    // 27.6.2.2.4 Putback:
204
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
205
0
    int_type sputbackc(char_type __c) {
206
0
        if (__binp_ == __ninp_ || !traits_type::eq(__c, __ninp_[-1]))
207
0
            return pbackfail(traits_type::to_int_type(__c));
208
0
        return traits_type::to_int_type(*--__ninp_);
209
0
    }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::sputbackc(char)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::sputbackc(wchar_t)
210
211
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
212
0
    int_type sungetc() {
213
0
        if (__binp_ == __ninp_)
214
0
          return pbackfail();
215
0
        return traits_type::to_int_type(*--__ninp_);
216
0
    }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::sungetc()
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::sungetc()
217
218
    // 27.6.2.2.5 Put area:
219
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
220
32.7M
    int_type sputc(char_type __c) {
221
32.7M
        if (__nout_ == __eout_)
222
0
            return overflow(traits_type::to_int_type(__c));
223
32.7M
        *__nout_++ = __c;
224
32.7M
        return traits_type::to_int_type(__c);
225
32.7M
    }
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::sputc(char)
Line
Count
Source
220
32.7M
    int_type sputc(char_type __c) {
221
32.7M
        if (__nout_ == __eout_)
222
0
            return overflow(traits_type::to_int_type(__c));
223
32.7M
        *__nout_++ = __c;
224
32.7M
        return traits_type::to_int_type(__c);
225
32.7M
    }
std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::sputc(wchar_t)
Line
Count
Source
220
11
    int_type sputc(char_type __c) {
221
11
        if (__nout_ == __eout_)
222
0
            return overflow(traits_type::to_int_type(__c));
223
11
        *__nout_++ = __c;
224
11
        return traits_type::to_int_type(__c);
225
11
    }
226
227
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
228
    streamsize sputn(const char_type* __s, streamsize __n)
229
268M
    { return xsputn(__s, __n); }
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::sputn(char const*, long)
Line
Count
Source
229
268M
    { return xsputn(__s, __n); }
std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::sputn(wchar_t const*, long)
Line
Count
Source
229
11
    { return xsputn(__s, __n); }
230
231
protected:
232
    basic_streambuf();
233
    basic_streambuf(const basic_streambuf& __rhs);
234
    basic_streambuf& operator=(const basic_streambuf& __rhs);
235
    void swap(basic_streambuf& __rhs);
236
237
    // 27.6.2.3.2 Get area:
238
32.7M
    _LIBCPP_INLINE_VISIBILITY char_type* eback() const {return __binp_;}
239
32.7M
    _LIBCPP_INLINE_VISIBILITY char_type* gptr()  const {return __ninp_;}
240
314
    _LIBCPP_INLINE_VISIBILITY char_type* egptr() const {return __einp_;}
241
242
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
243
0
    void gbump(int __n) { __ninp_ += __n; }
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::gbump(int)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::gbump(int)
244
245
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
246
32.7M
    void setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) {
247
32.7M
        __binp_ = __gbeg;
248
32.7M
        __ninp_ = __gnext;
249
32.7M
        __einp_ = __gend;
250
32.7M
    }
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::setg(char*, char*, char*)
Line
Count
Source
246
32.7M
    void setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) {
247
32.7M
        __binp_ = __gbeg;
248
32.7M
        __ninp_ = __gnext;
249
32.7M
        __einp_ = __gend;
250
32.7M
    }
std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::setg(wchar_t*, wchar_t*, wchar_t*)
Line
Count
Source
246
11
    void setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) {
247
11
        __binp_ = __gbeg;
248
11
        __ninp_ = __gnext;
249
11
        __einp_ = __gend;
250
11
    }
251
252
    // 27.6.2.3.3 Put area:
253
117M
    _LIBCPP_INLINE_VISIBILITY char_type* pbase() const {return __bout_;}
254
131M
    _LIBCPP_INLINE_VISIBILITY char_type* pptr()  const {return __nout_;}
255
32.7M
    _LIBCPP_INLINE_VISIBILITY char_type* epptr() const {return __eout_;}
256
257
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
258
23
    void pbump(int __n) { __nout_ += __n; }
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::pbump(int)
Line
Count
Source
258
23
    void pbump(int __n) { __nout_ += __n; }
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::pbump(int)
259
260
    _LIBCPP_INLINE_VISIBILITY
261
32.7M
    void __pbump(streamsize __n) { __nout_ += __n; }
262
263
    inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1
264
32.7M
    void setp(char_type* __pbeg, char_type* __pend) {
265
32.7M
        __bout_ = __nout_ = __pbeg;
266
32.7M
        __eout_ = __pend;
267
32.7M
    }
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::setp(char*, char*)
Line
Count
Source
264
32.7M
    void setp(char_type* __pbeg, char_type* __pend) {
265
32.7M
        __bout_ = __nout_ = __pbeg;
266
32.7M
        __eout_ = __pend;
267
32.7M
    }
std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::setp(wchar_t*, wchar_t*)
Line
Count
Source
264
11
    void setp(char_type* __pbeg, char_type* __pend) {
265
11
        __bout_ = __nout_ = __pbeg;
266
11
        __eout_ = __pend;
267
11
    }
268
269
    // 27.6.2.4 virtual functions:
270
    // 27.6.2.4.1 Locales:
271
    virtual void imbue(const locale& __loc);
272
273
    // 27.6.2.4.2 Buffer management and positioning:
274
    virtual basic_streambuf* setbuf(char_type* __s, streamsize __n);
275
    virtual pos_type seekoff(off_type __off, ios_base::seekdir __way,
276
                             ios_base::openmode __which = ios_base::in | ios_base::out);
277
    virtual pos_type seekpos(pos_type __sp,
278
                             ios_base::openmode __which = ios_base::in | ios_base::out);
279
    virtual int sync();
280
281
    // 27.6.2.4.3 Get area:
282
    virtual streamsize showmanyc();
283
    virtual streamsize xsgetn(char_type* __s, streamsize __n);
284
    virtual int_type underflow();
285
    virtual int_type uflow();
286
287
    // 27.6.2.4.4 Putback:
288
    virtual int_type pbackfail(int_type __c = traits_type::eof());
289
290
    // 27.6.2.4.5 Put area:
291
    virtual streamsize xsputn(const char_type* __s, streamsize __n);
292
    virtual int_type overflow(int_type __c = traits_type::eof());
293
294
private:
295
    locale __loc_;
296
    char_type* __binp_;
297
    char_type* __ninp_;
298
    char_type* __einp_;
299
    char_type* __bout_;
300
    char_type* __nout_;
301
    char_type* __eout_;
302
};
303
304
template <class _CharT, class _Traits>
305
basic_streambuf<_CharT, _Traits>::~basic_streambuf()
306
17.0M
{
307
17.0M
}
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::~basic_streambuf()
Line
Count
Source
306
17.0M
{
307
17.0M
}
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::~basic_streambuf()
308
309
template <class _CharT, class _Traits>
310
basic_streambuf<_CharT, _Traits>::basic_streambuf()
311
    : __binp_(0),
312
      __ninp_(0),
313
      __einp_(0),
314
      __bout_(0),
315
      __nout_(0),
316
      __eout_(0)
317
17.0M
{
318
17.0M
}
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::basic_streambuf()
Line
Count
Source
317
17.0M
{
318
17.0M
}
std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::basic_streambuf()
Line
Count
Source
317
15.4k
{
318
15.4k
}
319
320
template <class _CharT, class _Traits>
321
basic_streambuf<_CharT, _Traits>::basic_streambuf(const basic_streambuf& __sb)
322
    : __loc_(__sb.__loc_),
323
      __binp_(__sb.__binp_),
324
      __ninp_(__sb.__ninp_),
325
      __einp_(__sb.__einp_),
326
      __bout_(__sb.__bout_),
327
      __nout_(__sb.__nout_),
328
      __eout_(__sb.__eout_)
329
0
{
330
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::basic_streambuf(std::__1::basic_streambuf<char, std::__1::char_traits<char> > const&)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::basic_streambuf(std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> > const&)
331
332
template <class _CharT, class _Traits>
333
basic_streambuf<_CharT, _Traits>&
334
basic_streambuf<_CharT, _Traits>::operator=(const basic_streambuf& __sb)
335
0
{
336
0
    __loc_ = __sb.__loc_;
337
0
    __binp_ = __sb.__binp_;
338
0
    __ninp_ = __sb.__ninp_;
339
0
    __einp_ = __sb.__einp_;
340
0
    __bout_ = __sb.__bout_;
341
0
    __nout_ = __sb.__nout_;
342
0
    __eout_ = __sb.__eout_;
343
0
    return *this;
344
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::operator=(std::__1::basic_streambuf<char, std::__1::char_traits<char> > const&)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::operator=(std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> > const&)
345
346
template <class _CharT, class _Traits>
347
void
348
basic_streambuf<_CharT, _Traits>::swap(basic_streambuf& __sb)
349
0
{
350
0
    _VSTD::swap(__loc_, __sb.__loc_);
351
0
    _VSTD::swap(__binp_, __sb.__binp_);
352
0
    _VSTD::swap(__ninp_, __sb.__ninp_);
353
0
    _VSTD::swap(__einp_, __sb.__einp_);
354
0
    _VSTD::swap(__bout_, __sb.__bout_);
355
0
    _VSTD::swap(__nout_, __sb.__nout_);
356
0
    _VSTD::swap(__eout_, __sb.__eout_);
357
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::swap(std::__1::basic_streambuf<char, std::__1::char_traits<char> >&)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::swap(std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >&)
358
359
template <class _CharT, class _Traits>
360
void
361
basic_streambuf<_CharT, _Traits>::imbue(const locale&)
362
0
{
363
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::imbue(std::__1::locale const&)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::imbue(std::__1::locale const&)
364
365
template <class _CharT, class _Traits>
366
basic_streambuf<_CharT, _Traits>*
367
basic_streambuf<_CharT, _Traits>::setbuf(char_type*, streamsize)
368
0
{
369
0
    return this;
370
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::setbuf(char*, long)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::setbuf(wchar_t*, long)
371
372
template <class _CharT, class _Traits>
373
typename basic_streambuf<_CharT, _Traits>::pos_type
374
basic_streambuf<_CharT, _Traits>::seekoff(off_type, ios_base::seekdir,
375
                                          ios_base::openmode)
376
0
{
377
0
    return pos_type(off_type(-1));
378
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::seekoff(long long, std::__1::ios_base::seekdir, unsigned int)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::seekoff(long long, std::__1::ios_base::seekdir, unsigned int)
379
380
template <class _CharT, class _Traits>
381
typename basic_streambuf<_CharT, _Traits>::pos_type
382
basic_streambuf<_CharT, _Traits>::seekpos(pos_type, ios_base::openmode)
383
0
{
384
0
    return pos_type(off_type(-1));
385
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::seekpos(std::__1::fpos<__mbstate_t>, unsigned int)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::seekpos(std::__1::fpos<__mbstate_t>, unsigned int)
386
387
template <class _CharT, class _Traits>
388
int
389
basic_streambuf<_CharT, _Traits>::sync()
390
0
{
391
0
    return 0;
392
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::sync()
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::sync()
393
394
template <class _CharT, class _Traits>
395
streamsize
396
basic_streambuf<_CharT, _Traits>::showmanyc()
397
0
{
398
0
    return 0;
399
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::showmanyc()
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::showmanyc()
400
401
template <class _CharT, class _Traits>
402
streamsize
403
basic_streambuf<_CharT, _Traits>::xsgetn(char_type* __s, streamsize __n)
404
0
{
405
0
    const int_type __eof = traits_type::eof();
406
0
    int_type __c;
407
0
    streamsize __i = 0;
408
0
    while(__i < __n)
409
0
    {
410
0
        if (__ninp_ < __einp_)
411
0
        {
412
0
            const streamsize __len = _VSTD::min(static_cast<streamsize>(INT_MAX),
413
0
                                _VSTD::min(__einp_ - __ninp_, __n - __i));
414
0
            traits_type::copy(__s, __ninp_, __len);
415
0
            __s +=  __len;
416
0
            __i +=  __len;
417
0
            this->gbump(__len);
418
0
        }
419
0
        else if ((__c = uflow()) != __eof)
420
0
        {
421
0
            *__s = traits_type::to_char_type(__c);
422
0
            ++__s;
423
0
            ++__i;
424
0
        }
425
0
        else
426
0
            break;
427
0
    }
428
0
    return __i;
429
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::xsgetn(char*, long)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::xsgetn(wchar_t*, long)
430
431
template <class _CharT, class _Traits>
432
typename basic_streambuf<_CharT, _Traits>::int_type
433
basic_streambuf<_CharT, _Traits>::underflow()
434
0
{
435
0
    return traits_type::eof();
436
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::underflow()
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::underflow()
437
438
template <class _CharT, class _Traits>
439
typename basic_streambuf<_CharT, _Traits>::int_type
440
basic_streambuf<_CharT, _Traits>::uflow()
441
8
{
442
8
    if (underflow() == traits_type::eof())
443
4
        return traits_type::eof();
444
4
    return traits_type::to_int_type(*__ninp_++);
445
4
}
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::uflow()
Line
Count
Source
441
8
{
442
8
    if (underflow() == traits_type::eof())
443
4
        return traits_type::eof();
444
4
    return traits_type::to_int_type(*__ninp_++);
445
4
}
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::uflow()
446
447
template <class _CharT, class _Traits>
448
typename basic_streambuf<_CharT, _Traits>::int_type
449
basic_streambuf<_CharT, _Traits>::pbackfail(int_type)
450
0
{
451
0
    return traits_type::eof();
452
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::pbackfail(int)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::pbackfail(int)
453
454
template <class _CharT, class _Traits>
455
streamsize
456
basic_streambuf<_CharT, _Traits>::xsputn(const char_type* __s, streamsize __n)
457
266M
{
458
266M
    streamsize __i = 0;
459
266M
    int_type __eof = traits_type::eof();
460
549M
    while( __i < __n)
461
283M
    {
462
283M
        if (__nout_ >= __eout_)
463
29.2M
        {
464
29.2M
            if (overflow(traits_type::to_int_type(*__s)) == __eof)
465
0
                break;
466
29.2M
            ++__s;
467
29.2M
            ++__i;
468
29.2M
        }
469
254M
        else
470
254M
        {
471
254M
            streamsize __chunk_size = _VSTD::min(__eout_ - __nout_, __n - __i);
472
254M
            traits_type::copy(__nout_, __s, __chunk_size);
473
254M
            __nout_ += __chunk_size;
474
254M
            __s     += __chunk_size;
475
254M
            __i     += __chunk_size;
476
254M
        }
477
283M
    }
478
266M
    return __i;
479
266M
}
std::__1::basic_streambuf<char, std::__1::char_traits<char> >::xsputn(char const*, long)
Line
Count
Source
457
266M
{
458
266M
    streamsize __i = 0;
459
266M
    int_type __eof = traits_type::eof();
460
549M
    while( __i < __n)
461
283M
    {
462
283M
        if (__nout_ >= __eout_)
463
29.2M
        {
464
29.2M
            if (overflow(traits_type::to_int_type(*__s)) == __eof)
465
0
                break;
466
29.2M
            ++__s;
467
29.2M
            ++__i;
468
29.2M
        }
469
254M
        else
470
254M
        {
471
254M
            streamsize __chunk_size = _VSTD::min(__eout_ - __nout_, __n - __i);
472
254M
            traits_type::copy(__nout_, __s, __chunk_size);
473
254M
            __nout_ += __chunk_size;
474
254M
            __s     += __chunk_size;
475
254M
            __i     += __chunk_size;
476
254M
        }
477
283M
    }
478
266M
    return __i;
479
266M
}
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::xsputn(wchar_t const*, long)
480
481
template <class _CharT, class _Traits>
482
typename basic_streambuf<_CharT, _Traits>::int_type
483
basic_streambuf<_CharT, _Traits>::overflow(int_type)
484
0
{
485
0
    return traits_type::eof();
486
0
}
Unexecuted instantiation: std::__1::basic_streambuf<char, std::__1::char_traits<char> >::overflow(int)
Unexecuted instantiation: std::__1::basic_streambuf<wchar_t, std::__1::char_traits<wchar_t> >::overflow(int)
487
488
#ifndef _LIBCPP_DO_NOT_ASSUME_STREAMS_EXPLICIT_INSTANTIATION_IN_DYLIB
489
_LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_streambuf<char>)
490
_LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_streambuf<wchar_t>)
491
492
_LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ios<char>)
493
_LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ios<wchar_t>)
494
#endif
495
496
_LIBCPP_END_NAMESPACE_STD
497
498
_LIBCPP_POP_MACROS
499
500
#endif  // _LIBCPP_STEAMBUF