You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: crc32.go
    path of file: ./repos/glider/proxy/ssr/internal/ssr
    
    the code of the file until where you have to start completion: package ssr

import "encoding/binary"

var (
	crc32Table = make([]uint32, 256)
)

func init() 
    
func DoCalcCRC32(input []byte, index int, length int, value uint32) uint32 {
	buffer := input
	for i := index; i < length; i++ {
		value = (value >> 8) ^ crc32Table[byte(value&0xFF)^buffer[i]]
	}
	return value ^ 0xFFFFFFFF
}