virtual void flush() { static const char pad = PaddingChar; while( bytes_out % BlockSize ) writesome(&pad, 1); buffered_ostream::flush(); }
size_t stcp_socket::writesome( const std::shared_ptr<const char>& buf, size_t len, size_t offset ) { return writesome(buf.get() + offset, len); }
size_t buffered_ostream::writesome( const std::shared_ptr<const char>& buf, size_t len, size_t offset ) { return writesome(buf.get() + offset, len); }