github.com/xiyichan/dm8@v0.0.0-20211213021639-be727be3e136/util/zzr.go (about)

     1  /*
     2   * Copyright (c) 2000-2018, 达梦数据库有限公司.
     3   * All rights reserved.
     4   */
     5  package util
     6  
     7  const (
     8  	LINE_SEPARATOR = "\n"
     9  )
    10  
    11  func SliceEquals(src []byte, dest []byte) bool {
    12  	if len(src) != len(dest) {
    13  		return false
    14  	}
    15  
    16  	for i, _ := range src {
    17  		if src[i] != dest[i] {
    18  			return false
    19  		}
    20  	}
    21  
    22  	return true
    23  }