github.com/gotd/td/tg.FileHash.Offset (field)

33 uses

	github.com/gotd/td/tg (current package)
		tl_file_hash_gen.go#L39: 	Offset int64
		tl_file_hash_gen.go#L61: 	if !(f.Offset == 0) {
		tl_file_hash_gen.go#L89: 	f.Offset = from.GetOffset()
		tl_file_hash_gen.go#L147: 	b.PutLong(f.Offset)
		tl_file_hash_gen.go#L174: 		f.Offset = value
		tl_file_hash_gen.go#L198: 	return f.Offset

	github.com/gotd/td/telegram/downloader
		cdn_verify.go#L38: 	data, ok := c.windows[hash.Offset]
		cdn_verify.go#L60: 	if _, ok := c.windows[hash.Offset]; !ok {
		cdn_verify.go#L61: 		c.windowsFIFO = append(c.windowsFIFO, hash.Offset)
		cdn_verify.go#L64: 	c.windows[hash.Offset] = append([]byte(nil), data...)
		cdn_verify.go#L89: 		if _, exists := c.hashes[hash.Offset]; !exists {
		cdn_verify.go#L91: 				return c.hashOffsets[i] >= hash.Offset
		cdn_verify.go#L94: 				c.hashOffsets = append(c.hashOffsets, hash.Offset)
		cdn_verify.go#L95: 			} else if c.hashOffsets[idx] != hash.Offset {
		cdn_verify.go#L98: 				c.hashOffsets[idx] = hash.Offset
		cdn_verify.go#L101: 		c.hashes[hash.Offset] = hash
		cdn_verify.go#L134: 	end := candidate.Offset + int64(candidate.Limit)
		cdn_verify.go#L136: 	ok = offset >= candidate.Offset && offset < end
		cdn_verify.go#L173: 	key = strconv.AppendInt(key, hash.Offset, 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#L201: 				hash.Offset, hash.Limit, len(full.data),
		cdn_verify.go#L208: 				hash.Offset, hash.Limit,
		cdn_verify.go#L245: 		windowStart := hash.Offset
		cdn_verify.go#L246: 		windowEnd := hash.Offset + int64(hash.Limit)
		reader.go#L67: 	b, err := r.next(ctx, hash.Offset, hash.Limit)
		verifier.go#L34: 		return r[i].Offset < r[j].Offset
		verifier.go#L41: 		end := hash.Offset + int64(hash.Limit)
		verifier.go#L78: 		return hashes[i].Offset < hashes[j].Offset
		verifier.go#L85: 	if last.Offset == v.offset-int64(last.Limit) {
		verifier.go#L90: 	v.offset = last.Offset + int64(last.Limit)