1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00

SwitchAccount command

This commit is contained in:
v2ray
2015-12-12 13:11:49 +01:00
parent 47f35b1c3e
commit fed5697dc3
10 changed files with 196 additions and 9 deletions

View File

@@ -31,3 +31,27 @@ func (this IntLiteral) String() string {
func (this IntLiteral) Value() int {
return int(this)
}
type Int64Literal int64
func (this Int64Literal) String() string {
return strconv.FormatInt(this.Value(), 10)
}
func (this Int64Literal) Value() int64 {
return int64(this)
}
func (this Int64Literal) Bytes() []byte {
value := this.Value()
return []byte{
byte(value >> 56),
byte(value >> 48),
byte(value >> 40),
byte(value >> 32),
byte(value >> 24),
byte(value >> 16),
byte(value >> 8),
byte(value),
}
}