plastimatch
Loading...
Searching...
No Matches
plm_fwrite.cxx File Reference
#include "plmsys_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "plm_int.h"
#include "plm_fwrite.h"
#include "print_and_exit.h"

Macros

#define LINELEN   128
 
#define MIN_SHORT   -32768
 
#define MAX_SHORT   32767
 
#define WRITE_BLOCK   (1024*1024)
 

Functions

static size_t fwrite_internal (void *buf, size_t size, size_t count, FILE *fp)
 
void plm_fwrite (void *buf, size_t size, size_t count, FILE *fp, bool force_little_endian)
 

Macro Definition Documentation

◆ LINELEN

#define LINELEN   128

◆ MAX_SHORT

#define MAX_SHORT   32767

◆ MIN_SHORT

#define MIN_SHORT   -32768

◆ WRITE_BLOCK

#define WRITE_BLOCK   (1024*1024)

Function Documentation

◆ fwrite_internal()

static size_t fwrite_internal ( void * buf,
size_t size,
size_t count,
FILE * fp )
static

◆ plm_fwrite()

void plm_fwrite ( void * buf,
size_t size,
size_t count,
FILE * fp,
bool force_little_endian )