Add msgpack wire protocol with halfsiphash checksums
This commit is contained in:
13
lib/msgpack/safe.go
Normal file
13
lib/msgpack/safe.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// +build appengine
|
||||
|
||||
package msgpack
|
||||
|
||||
// bytesToString converts byte slice to string.
|
||||
func bytesToString(b []byte) string {
|
||||
return string(b)
|
||||
}
|
||||
|
||||
// stringToBytes converts string to byte slice.
|
||||
func stringToBytes(s string) []byte {
|
||||
return []byte(s)
|
||||
}
|
||||
Reference in New Issue
Block a user