mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-21 13:26:29 +03:00
update phony, add mobile versions of util bytes functions that don't try to store anything
This commit is contained in:
13
src/util/bytes_mobile.go
Normal file
13
src/util/bytes_mobile.go
Normal file
@@ -0,0 +1,13 @@
|
||||
//+build mobile
|
||||
|
||||
package util
|
||||
|
||||
// On mobile, just return a nil slice.
|
||||
func GetBytes() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
// On mobile, don't do anything.
|
||||
func PutBytes(bs []byte) {
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user