github.com/gotd/td/tg.FileHash.Limit (field)
30 uses
github.com/gotd/td/tg (current package)
tl_file_hash_gen.go#L41: Limit int
tl_file_hash_gen.go#L64: if !(f.Limit == 0) {
tl_file_hash_gen.go#L90: f.Limit = from.GetLimit()
tl_file_hash_gen.go#L148: b.PutInt(f.Limit)
tl_file_hash_gen.go#L181: f.Limit = value
tl_file_hash_gen.go#L206: return f.Limit
github.com/gotd/td/telegram/downloader
cdn_verify.go#L42: if len(data) == 0 || len(data) > hash.Limit {
cdn_verify.go#L51: if hash.Limit <= 0 || len(data) == 0 || len(data) > hash.Limit {
cdn_verify.go#L84: if hash.Limit <= 0 {
cdn_verify.go#L130: if !exists || candidate.Limit <= 0 {
cdn_verify.go#L134: end := candidate.Offset + int64(candidate.Limit)
cdn_verify.go#L176: key = strconv.AppendInt(key, int64(hash.Limit), 10)
cdn_verify.go#L195: full, err := c.Chunk(ctx, hash.Offset, hash.Limit)
cdn_verify.go#L197: return nil, errors.Wrapf(err, "load full hash window at offset=%d limit=%d", hash.Offset, hash.Limit)
cdn_verify.go#L199: if len(full.data) == 0 || len(full.data) > hash.Limit {
cdn_verify.go#L202: hash.Offset, hash.Limit, len(full.data),
cdn_verify.go#L209: hash.Offset, hash.Limit,
cdn_verify.go#L243: if hash.Limit <= 0 {
cdn_verify.go#L244: return errors.Errorf("invalid CDN hash limit %d at offset %d", hash.Limit, current)
cdn_verify.go#L247: windowEnd := hash.Offset + int64(hash.Limit)
cdn_verify.go#L261: windowStart, hash.Limit,
reader.go#L80: b, err := r.next(ctx, hash.Offset, hash.Limit)
verifier.go#L43: if hash.Limit <= 0 {
verifier.go#L46: end := hash.Offset + int64(hash.Limit)
verifier.go#L74: for len(v.hashes) > 0 && v.hashes[0].Offset+int64(v.hashes[0].Limit) <= v.skip {
verifier.go#L109: if last.Offset == v.offset-int64(last.Limit) {
verifier.go#L114: v.offset = last.Offset + int64(last.Limit)
verify_local.go#L47: n := int64(hash.Limit)
verify_local.go#L64: if n < int64(hash.Limit) || verified >= size {
 |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |