#[repr(C)]pub struct MS3FileParam {
pub path: [c_char; 512],
pub startoffset: i64,
pub endoffset: i64,
pub streampos: i64,
pub recordcount: i64,
pub readbuffer: *mut c_char,
pub readlength: c_int,
pub readoffset: c_int,
pub flags: u32,
pub input: LMIO,
}
Expand description
@brief State container for reading miniSEED records from files or URLs.
In general these values should not be directly set or accessed. It is possible to allocate a structure and set the \c path, \c startoffset, and \c endoffset values for advanced usage. Note that file/URL start and end offsets can also be parsed from the path name as well.
Fields§
§path: [c_char; 512]
!< INPUT: File name or URL
startoffset: i64
!< INPUT: Start position in input stream
endoffset: i64
!< INPUT: End position in input stream, 0 == unknown (e.g. pipe)
streampos: i64
!< OUTPUT: Read position of input stream
recordcount: i64
!< OUTPUT: Count of records read from this stream/file so far
readbuffer: *mut c_char
!< INTERNAL: Read buffer, allocated internally
readlength: c_int
!< INTERNAL: Length of data in read buffer
readoffset: c_int
!< INTERNAL: Read offset in read buffer
flags: u32
!< INTERNAL: Stream reading state flags
input: LMIO
!< INTERNAL: IO handle, file or URL
Trait Implementations§
Source§impl Clone for MS3FileParam
impl Clone for MS3FileParam
Source§fn clone(&self) -> MS3FileParam
fn clone(&self) -> MS3FileParam
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more