#[repr(C)]pub struct MS3RecordPtr {
pub bufferptr: *const c_char,
pub fileptr: *mut FILE,
pub filename: *const c_char,
pub fileoffset: i64,
pub msr: *mut MS3Record,
pub endtime: nstime_t,
pub dataoffset: u32,
pub prvtptr: *mut c_void,
pub next: *mut MS3RecordPtr,
}Expand description
@brief A miniSEED record pointer and metadata
Used to construct a list of data records that contributed to a trace segment.
The location of the record is identified at a memory address (\a bufferptr), the location in an open file (\a fileptr and \a fileoffset), or the location in a file (\a filename and \a fileoffset).
A ::MS3Record is stored with and contains the bit flags, extra headers, etc. for the record.
The \a dataoffset to the encoded data is stored to enable direct decoding of data samples without re-parsing the header, used by mstl3_unpack_recordlist().
Note: the list is stored in the time order that the entries contributed to the segment.
@see mstl3_unpack_recordlist()
Fields§
§bufferptr: *const c_char!< Pointer in buffer to record, NULL if not used
fileptr: *mut FILE!< Pointer to open FILE containing record, NULL if not used
filename: *const c_char!< Pointer to file name containing record, NULL if not used
fileoffset: i64!< Offset into file to record for \a fileptr or \a filename
msr: *mut MS3Record!< Pointer to ::MS3Record for this record
endtime: nstime_t!< End time of record, time of last sample
dataoffset: u32!< Offset from start of record to encoded data
prvtptr: *mut c_void!< Private pointer, will not be populated by library but will be free’d
next: *mut MS3RecordPtr!< Pointer to next entry, NULL if the last
Trait Implementations§
Source§impl Clone for MS3RecordPtr
impl Clone for MS3RecordPtr
Source§fn clone(&self) -> MS3RecordPtr
fn clone(&self) -> MS3RecordPtr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more