src/storage/source/PartitionedFile.cc
int PartitionedFile::writeData(FILE* file, void* data, size_t length) {

    if ((file == nullptr) || (data == nullptr)) {
        cout << "PartitionedFile: Error: writeData with nullptr.\n";
        return -1;
    }
    size_t retSize = fwrite(data, sizeof(char), length, file);
    fflush(file);
    if (retSize != length) {
        return -1;
    } else {
        return 0;
    }
}
/**
 * Write data specified to the current file position.
 */
Write data specified to the current file position.
Write data specified to the current file position .
int PartitionedFile::writeData(FILE* file, void* data, size_t length) {
    if ((file == nullptr) || (data == nullptr)) {
        cout << "PartitionedFile: Error: writeData with nullptr.\n";
        return -1;
    }
    size_t retSize = fwrite(data, sizeof(char), length, file);
    fflush(file);
    if (retSize != length) {
        return -1;
    } else {
        return 0;
    }
}
int PartitionedFile :: writeData ( FILE * file , void * data , size_t length ) { if ( ( file == nullptr ) || ( data == nullptr ) ) { cout << " \n " ; return -1 ; } size_t retSize = fwrite ( data , sizeof ( char ) , length , file ) ; fflush ( file ) ; if ( retSize != length ) { return -1 ; } else { return 0 ; } }
Write data specified to the current file position.
Write data specified to the current file position .