1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 06:46:14 -04:00
This commit is contained in:
Darien Raymond 2017-08-24 23:10:58 +02:00
parent 7392bb495b
commit 97a09bb5bd
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ func BytesToUint32(value []byte) uint32 {
uint32(value[3]) uint32(value[3])
} }
// BytesToInt deserializes a bytes array (of at leat 4 bytes) to an int in big endian order.
func BytesToInt(value []byte) int { func BytesToInt(value []byte) int {
return int(value[0])<<24 | return int(value[0])<<24 |
int(value[1])<<16 | int(value[1])<<16 |

View File

@ -18,7 +18,7 @@ import (
) )
var ( var (
version = "2.35" version = "2.36"
build = "Custom" build = "Custom"
codename = "One for all" codename = "One for all"
intro = "An unified platform for anti-censorship." intro = "An unified platform for anti-censorship."