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. Advertisements

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. Starbase Commander

    Unbuffered keyboard input???

    Starbase Commander, Sep 10, 2004, in forum: Perl
    Replies:
    1
    Views:
    858
    J├╝rgen Exner
    Sep 11, 2004
  2. Guest
    Replies:
    3
    Views:
    921
    John Harrison
    Aug 8, 2004
  3. Guest
    Replies:
    1
    Views:
    649
    Jonathan Turkanis
    Aug 29, 2004
  4. Steven T. Hatton

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

    Steven T. Hatton, Jul 3, 2005, in forum: C++
    Replies:
    3
    Views:
    616
    Steven T. Hatton
    Jul 4, 2005
  5. sri
    Replies:
    2
    Views:
    457
    Carl Barron
    Apr 6, 2007
  6. Christopher
    Replies:
    1
    Views:
    531
    Christopher Pisz
    Jan 29, 2008
  7. Fraser Ross

    basic_streambuf

    Fraser Ross, Mar 21, 2008, in forum: C++
    Replies:
    2
    Views:
    395
    gnuyuva
    Mar 21, 2008
  8. DeveloperDave
    Replies:
    4
    Views:
    535
    DeveloperDave
    Jan 27, 2011
Loading...