mirror of https://github.com/v2ray/v2ray-core
timestamp in protocol
parent
464f15cb02
commit
9e68c150e1
|
@ -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