kent131452777/steimpack/mseed does not have a README file

    RecordError

    pub(all) suberror RecordError {
    BadHeader(String)
    BadLength(String)
    BadChecksum(UInt, UInt)
    } derive(
    Debug
    )

    impl Show for RecordError
    pub(all) struct Header {
    source_id : String
    year : Int
    day : Int
    hour : Int
    minute : Int
    second : Int
    nanosecond : Int
    rate : Double
    flags : Int
    publication : Int
    extra : Bytes
    } derive(Eq,
    Debug
    )

    Record metadata. A negative rate denotes seconds per sample.

    Record

    pub(all) struct Record {
    header : Header
    version : Int
    encoding : Int
    sample_count : Int
    little_endian : Bool
    payload : Bytes
    byte_length : Int
    unmapped_blockettes : Array[Int]
    } derive(Eq,
    Debug
    )

    An individual record with its encoded payload. The endianness applies to the payload. The record header may have used a different byte order.

    make_v3

    fn make_v3(header : Header, encoding : Int, sample_count : Int, payload : Bytes) -> Bytes raise RecordError

    Builds one miniSEED 3 record from an already encoded payload and computes its CRC-32C. JSON extra header bytes are preserved exactly.

    parse

    fn parse(data : Bytes) -> Record raise RecordError

    Parses exactly one record. A miniSEED 3 record must pass its CRC-32C check.

    record_length

    fn record_length(prefix : Bytes) -> Int? raise RecordError

    Returns the first record's size as soon as its framing fields have arrived. An incomplete prefix returns None. Individual records are limited to 16 MiB.