Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fastio.h File Reference

#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>

Go to the source code of this file.

Compounds

struct  fio_iovec

Defines

#define FIO_READ   0x01
#define FIO_WRITE   0x02
#define FIO_DIRECT   0x04
#define FIO_SEEK_CUR   SEEK_CUR
#define FIO_SEEK_SET   SEEK_SET
#define FIO_SEEK_END   SEEK_END

Typedefs

typedef int fio_fd
typedef off_t fio_size_t
typedef void * fio_caddr_t

Functions

int fio_open (const char *filename, int mode, fio_fd *fd)
int fio_fclose (fio_fd fd)
fio_size_t fio_fread (void *ptr, fio_size_t size, fio_size_t nitems, fio_fd fd)
fio_size_t fio_readv (fio_fd fd, const fio_iovec *iov, int iovcnt)
fio_size_t fio_fwrite (void *ptr, fio_size_t size, fio_size_t nitems, fio_fd fd)
fio_size_t fio_fseek (fio_fd fd, fio_size_t offset, int whence)
fio_size_t fio_ftell (fio_fd fd)
int fio_write_int32 (fio_fd fd, int i)
int fio_read_int32 (fio_fd fd, int *i)
int fio_write_str (fio_fd fd, const char *str)


Define Documentation

#define FIO_DIRECT   0x04
 

Definition at line 27 of file fastio.h.

Referenced by fio_open, open_js_read, and read_js_structure.

#define FIO_READ   0x01
 

Definition at line 25 of file fastio.h.

Referenced by fio_open, open_dcd_read, open_js_read, and read_js_structure.

#define FIO_SEEK_CUR   SEEK_CUR
 

Definition at line 374 of file fastio.h.

Referenced by read_charmm_4dim, read_charmm_extrablock, read_dcdheader, read_js_structure, read_js_timestep, and skip_dcdstep.

#define FIO_SEEK_END   SEEK_END
 

Definition at line 376 of file fastio.h.

Referenced by close_js_write, open_dcd_read, and write_dcdstep.

#define FIO_SEEK_SET   SEEK_SET
 

Definition at line 375 of file fastio.h.

Referenced by close_js_write, js_calc_timestep_blocking_info, open_dcd_read, and write_dcdstep.

#define FIO_WRITE   0x02
 

Definition at line 26 of file fastio.h.

Referenced by fio_open, open_dcd_write, and open_js_write.


Typedef Documentation

typedef void* fio_caddr_t
 

Definition at line 360 of file fastio.h.

typedef int fio_fd
 

Definition at line 340 of file fastio.h.

Referenced by fio_fclose, fio_fread, fio_fseek, fio_ftell, fio_fwrite, fio_open, fio_read_int32, fio_readv, fio_write_int32, fio_write_str, open_dcd_read, open_dcd_write, read_charmm_4dim, read_charmm_extrablock, read_dcdheader, read_dcdstep, read_fixed_atoms, read_js_timestep_index_offsets, skip_dcdstep, write_dcdheader, and write_dcdstep.

typedef off_t fio_size_t
 

Definition at line 341 of file fastio.h.

Referenced by fio_fread, fio_fseek, fio_ftell, fio_fwrite, fio_readv, js_calc_timestep_blocking_info, open_dcd_read, read_js_timestep, and read_js_timestep_index_offsets.


Function Documentation

int fio_fclose fio_fd    fd [static]
 

Definition at line 406 of file fastio.h.

References close, and fio_fd.

Referenced by close_file_read, close_file_write, close_js_read, close_js_write, open_dcd_read, open_dcd_write, and open_js_read.

fio_size_t fio_fread void *    ptr,
fio_size_t    size,
fio_size_t    nitems,
fio_fd    fd
[static]
 

Definition at line 410 of file fastio.h.

References fio_fd, and fio_size_t.

Referenced by fio_read_int32, open_js_read, read_charmm_4dim, read_charmm_extrablock, read_dcdstep, read_fixed_atoms, read_js_structure, and read_js_timestep.

fio_size_t fio_fseek fio_fd    fd,
fio_size_t    offset,
int    whence
[static]
 

Definition at line 585 of file fastio.h.

References fio_fd, and fio_size_t.

Referenced by close_js_write, js_calc_timestep_blocking_info, open_dcd_read, read_charmm_4dim, read_charmm_extrablock, read_dcdheader, read_js_structure, read_js_timestep, skip_dcdstep, and write_dcdstep.

fio_size_t fio_ftell fio_fd    fd [static]
 

Definition at line 592 of file fastio.h.

References fio_fd, and fio_size_t.

Referenced by js_calc_timestep_blocking_info, and open_dcd_read.

fio_size_t fio_fwrite void *    ptr,
fio_size_t    size,
fio_size_t    nitems,
fio_fd    fd
[static]
 

Definition at line 529 of file fastio.h.

References fio_fd, fio_size_t, and write.

Referenced by fio_write_int32, fio_write_str, write_dcdstep, write_js_structure, and write_js_timestep.

int fio_open const char *    filename,
int    mode,
fio_fd   fd
[static]
 

Definition at line 378 of file fastio.h.

References FIO_DIRECT, fio_fd, FIO_READ, and FIO_WRITE.

Referenced by open_dcd_read, open_dcd_write, open_js_read, open_js_write, and read_js_structure.

int fio_read_int32 fio_fd    fd,
int *    i
[static]
 

Definition at line 605 of file fastio.h.

References fio_fd, and fio_fread.

Referenced by open_js_read, and read_js_structure.

fio_size_t fio_readv fio_fd    fd,
const fio_iovec   iov,
int    iovcnt
[static]
 

Definition at line 459 of file fastio.h.

References fio_fd, fio_size_t, fio_iovec::iov_base, and fio_iovec::iov_len.

Referenced by read_dcdstep, and read_js_timestep.

int fio_write_int32 fio_fd    fd,
int    i
[static]
 

Definition at line 601 of file fastio.h.

References fio_fd, and fio_fwrite.

Referenced by close_js_write, open_js_write, write_dcdheader, write_dcdstep, write_js_structure, and write_js_timestep.

int fio_write_str fio_fd    fd,
const char *    str
[static]
 

Definition at line 609 of file fastio.h.

References fio_fd, and fio_fwrite.

Referenced by open_js_write.


Generated on Thu Nov 7 03:09:53 2024 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002