nsCRT::memcpy(toRawSegment, dataToWrite->data + offset, write);
memcpy(toRawSegment, dataToWrite->data + offset, write);
nsReadData(nsIOutputStream* out,           void* closure, // the data from           char* toRawSegment, // where to put the data           PRUint32 offset, // where to start           PRUint32 count, // how much data is there           PRUint32 *readCount) { // how much data was read  nsresult rv = NS_OK;  writeData *dataToWrite = (writeData*)closure;  PRUint32 write = PR_MIN(count, dataToWrite->dataLen - offset);  *readCount = 0;  if (offset == dataToWrite->dataLen)      return NS_OK;     // *readCount == 0 is EOF  nsCRT::memcpy(toRawSegment, dataToWrite->data + offset, write);  *readCount = write;  return rv;}