code: func getData(data []byte, start uint64, size uint64) []byte {
  	length := uint64(len(data))
  	if start > length {
  		start = length
  	}
  	end := start + size
  	if end > length {
  		end = length
  	}
  	return common.RightPadBytes(data[start:end], int(size))
  }
docs: // getData returns a slice from the data based on the start and size and pads
  // up to size with zero's. This function is overflow safe.