mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-05 08:56:49 -05:00
timestamp in protocol
This commit is contained in:
parent
464f15cb02
commit
9e68c150e1
11
common/protocol/time.go
Normal file
11
common/protocol/time.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package protocol
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/v2ray/v2ray-core/common/serial"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Timestamp int64
|
||||||
|
|
||||||
|
func (this Timestamp) Bytes() []byte {
|
||||||
|
return serial.Int64Literal(this).Bytes()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user