mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 17:05:03 +01:00
refactored gametime and utils folder which decouples entrance and sign from channel servers
This commit is contained in:
8
utils/bfutil/bfutil.go
Normal file
8
utils/bfutil/bfutil.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package bfutil
|
||||
|
||||
import "bytes"
|
||||
|
||||
// UpToNull returns the given byte slice's data, up to (not including) the first null byte.
|
||||
func UpToNull(data []byte) []byte {
|
||||
return bytes.SplitN(data, []byte{0x00}, 2)[0]
|
||||
}
|
||||
Reference in New Issue
Block a user