-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mseed crate doesn't support to create MSRecord by caller #14
Comments
I guess this is somehow related to #13. There is a reason why there isn't an example, yet. At the time being, this is simply not possible. However, while designing and implementing the API I knew already about these kind of issues. Currently, Now to your problem. Basically, I see two approaches to solve this issue.
For the sake of simplicity, I'd prefer to implement the latter approach. However, there may be reasons I'm still not aware of and in the long term it might be better to have more flexibility. What do you think? |
I agree, overloading it with mseed::PackInfo make it easy to implement for now. However, it would be nice to refactor the MSRecord API to bring more flexbiltiy into it |
Hi @damb , I have come across with using
mseed::pack_header2(msr: &MSRecord, buf: &mut [u8])
, but I am not sure how to create aMSRecord
as it's a pointer to MS3Record and doesn't provided any API to initialize it.It would be nice if there is a example for how to use this API for the caller.
Thanks
The text was updated successfully, but these errors were encountered: