use boost streambuf