feat: add mtran ROS2 translation service
This commit is contained in:
14
src/mtran/vendor/mtranserver/deprecated/go/data/utils.go
vendored
Normal file
14
src/mtran/vendor/mtranserver/deprecated/go/data/utils.go
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
package data
|
||||
|
||||
import "crypto/sha256"
|
||||
|
||||
//go:generate go run gen_update.go
|
||||
//go:generate go run gen_hash.go
|
||||
|
||||
func GetRecordsInfo() (hash string, size int) {
|
||||
return RecordsHash, len(RecordsJson)
|
||||
}
|
||||
|
||||
func ComputeHash(data []byte) [32]byte {
|
||||
return sha256.Sum256(data)
|
||||
}
|
||||
Reference in New Issue
Block a user