- boost::iostreams::write(*outBuffer, (char*)&size, sizeof(long unsigned int));
- boost::iostreams::write(*outBuffer, (char*)&headeridhash, sizeof(unsigned long));
- boost::iostreams::write(*outBuffer, header, size);
+ boost::iostreams::write(*ioBuffers->out, (char*)&size, sizeof(long unsigned int));
+ boost::iostreams::write(*ioBuffers->out, (char*)&headeridhash, sizeof(unsigned long));
+ boost::iostreams::write(*ioBuffers->out, header, size);