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

Some questions about source code #25

Open
sunism opened this issue Jun 15, 2022 · 0 comments
Open

Some questions about source code #25

sunism opened this issue Jun 15, 2022 · 0 comments

Comments

@sunism
Copy link

sunism commented Jun 15, 2022

there are two questions about source code:

  1. tsz.go
// clamp number of leading zeros to avoid overflow when encoding
		if leading >= 32 {
			leading = 31
		}

the value is float 64 , leading zero is will between 0 and 64, why there use 32?
2. tsz.go

if s.leading != ^uint8(0) && leading >= s.leading && trailing >= s.trailing {

what ahout the meaning of s.leading != ^uint8(0) ??

I really hope to hear from you

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

1 participant