| CrystFEL Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
typedef Stream; #define CHUNK_END_MARKER #define CHUNK_START_MARKER #define CRYSTAL_END_MARKER #define CRYSTAL_START_MARKER #define PEAK_LIST_END_MARKER #define PEAK_LIST_START_MARKER #define REFLECTION_END_MARKER #define REFLECTION_START_MARKER Stream * open_stream_fd_for_write (int fd); Stream * open_stream_for_read (const char *filename); Stream * open_stream_for_write (const char *filename); void close_stream (Stream *st); int read_chunk (Stream *st,struct image *image); void write_chunk (Stream *st,struct image *image,struct hdfile *hdfile,int include_peaks,int include_reflections); int rewind_stream (Stream *st); int is_stream (const char *filename); void write_command (Stream *st,int argc,char *argv[]); void write_line (Stream *st,const char *line);
void write_chunk (Stream *st,struct image *image,struct hdfile *hdfile,int include_peaks,int include_reflections);
int rewind_stream (Stream *st);
Attempts to set the file pointer for st to the start of the stream, so that
later calls to read_chunk() will repeat the sequence of chunks from the
start.
Programs must not assume that this operation always succeeds!
|
A Stream
|
Returns : |
non-zero if the stream could not be rewound. |