Skip to content
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

How to read Cstate value from the file? #236

Open
kash203 opened this issue Jul 20, 2021 · 3 comments
Open

How to read Cstate value from the file? #236

kash203 opened this issue Jul 20, 2021 · 3 comments

Comments

@kash203
Copy link

kash203 commented Jul 20, 2021

Hi,

The point I would like to confirm is below.

if let Ok(time) = reader.read_u64().await {

The document about read_u64 is written below.

Reads an unsigned 64-bit integer in big-endian order from the underlying reader.

I think the value in the target file is recorded as microsecond and integer.
I don't know what the function read correctly, but I think it is not necessary to read the file in big-endian order.
I think the function may read information about the file itself, not the contents of the file.

I would like you to confirm whether the implementation is valid.

regards,

@brayniac
Copy link
Contributor

@kash203 - I think this would make a better issue if you follow the questions in the issue template. It's unclear from this if you suspect a bug or are asking me to check the logic for a specific function. The code is open source, so you should be able to determine what it's doing by looking at the function.

If instead you suspect a bug in the logic, stating what the issue is and why you believe there's a bug will be more helpful.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@brayniac @kash203 and others