github.com/gotd/td/tg.FileHash.Limit (field)
27 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#L175: key = strconv.AppendInt(key, int64(hash.Limit), 10)
cdn_verify.go#L194: full, err := c.Chunk(ctx, hash.Offset, hash.Limit)
cdn_verify.go#L196: return nil, errors.Wrapf(err, "load full hash window at offset=%d limit=%d", hash.Offset, hash.Limit)
cdn_verify.go#L198: if len(full.data) == 0 || len(full.data) > hash.Limit {
cdn_verify.go#L201: hash.Offset, hash.Limit, len(full.data),
cdn_verify.go#L208: hash.Offset, hash.Limit,
cdn_verify.go#L242: if hash.Limit <= 0 {
cdn_verify.go#L243: return errors.Errorf("invalid CDN hash limit %d at offset %d", hash.Limit, current)
cdn_verify.go#L246: windowEnd := hash.Offset + int64(hash.Limit)
cdn_verify.go#L260: windowStart, hash.Limit,
reader.go#L67: b, err := r.next(ctx, hash.Offset, hash.Limit)
verifier.go#L38: if hash.Limit <= 0 {
verifier.go#L41: end := hash.Offset + int64(hash.Limit)
verifier.go#L85: if last.Offset == v.offset-int64(last.Limit) {
verifier.go#L90: v.offset = last.Offset + int64(last.Limit)
 |
The pages are generated with Golds v0.8.4. (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. |