Unbuffered basic_streambuf

Discussion in 'C++' started by Guest, Aug 28, 2004.

  1. Guest

    Guest Guest

    I was hoping that someone (after my own failures) might post a very mininal
    unbuffered derivation of basic_streambuf. My problem is that (even leaving
    the buffer pointers to their defaults) uflow() never gets called unless I
    define an underflow(). overflow() works as expected but I'm just trying to
    start small and I can't even get that done. :(

    I have also tried setting the buffer pointers using the _Init() method,
    setp( 0, 0 ), setg( 0, 0, 0 ) and it still "seems" to treat my derivation as
    a buffered stream.

    Please... :p

    ty
     
    Guest, Aug 28, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    3
    Views:
    723
    John Harrison
    Aug 8, 2004
  2. Guest
    Replies:
    1
    Views:
    565
    Jonathan Turkanis
    Aug 29, 2004
  3. Steven T. Hatton

    I/O std::basic_streambuf put and get areas?

    Steven T. Hatton, Jul 3, 2005, in forum: C++
    Replies:
    3
    Views:
    525
    Steven T. Hatton
    Jul 4, 2005
  4. sri
    Replies:
    2
    Views:
    353
    Carl Barron
    Apr 6, 2007
  5. Christopher
    Replies:
    1
    Views:
    416
    Christopher Pisz
    Jan 29, 2008
Loading...

Share This Page