C++ Library - <wstreambuf>



Introduction

It is a ase buffer class for streams (wide).

Definition

Below is definition of std::wstreambuf.

typedef basic_streambuf<wchar_t> wstreambuf;

Parameters

  • charT − Character type.

  • traits − Character traits class that defines essential properties of the characters used by stream objects.

Public member functions inherited from basic_streambuf

Sr.No.Locales & Definition
1event

Type to indicate event type

2event_callback

Event callback function type

Public Member Functions

Sr.No.Member types & Definition
1pubimbue

It is an imbue locale

2getloc

It is used to get current locale

Buffer management and positioning

Sr.No.Buffer management and positioning & Definition
1pubsetbuf

It is used to set buffer array

2pubseekoff

It is used to set internal position pointer to relative position

3pubseekpos

It is used to set internal position pointer to absolute position

4pubsync

It is used to synchronize stream buffer

Input functions

Sr.No.Input functions & Definition
1in_avail

It is used to get number of character available to read

2snextc

It is used to advance to next position and get character

3sbumpc

It is used to get current character and advance to next position

4sgetc

It is used to get current character

5sgetn

It is used to get sequence of characters

6sputbackc

It is used to put character back

7sungetc

It is used to decrease current position

Output functions

Sr.No.Output & Definition
1sputc

It is used to put character and advance to next position

2sputn

It is used to put sequence of characters

Protected virtual function overrides

Sr.No.virtual function & Definition
1setbuf

It is used to set buffer

2seekoff

It is used to set position pointer to relative position

3seekpos

It is used to set position pointer to absolute position

4underflow

It is used to get character

5pbackfail

It is used to put character back

6overflow

It is used to put character

Protected member functions

The following protected member functions provide access to these pointers −

Input sequence

Sr.No.Input sequence & Definition
1eback

It is used in pointer to beginning of input sequence

2gptr

It is used in pointer to current position of input sequence

3egptr

It is used in pointer to end of input sequence

4gbump

It is used to get pointer

5setg

It is used to set input sequence pointers

Output sequence (put)

Sr.No.Output sequence & Definition
1pbase

It is used in pointer to beginning of output sequence

2pptr

It is used in pointer to current position of output sequence

3epptr

It is used in pointer to end of output sequence

4pbump

It is used to increase put pointer

5setp

It is used to set output sequence pointers

Copying

Sr.No.Copying & Definition
1operator=

It is used in stream buffer assignment

2swap

It is used in wap stream buffers