mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 09:15:37 -05:00
refactor bytes functions
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
|
||||
type Timestamp int64
|
||||
|
||||
func (this Timestamp) Bytes() []byte {
|
||||
return serial.Int64ToBytes(int64(this))
|
||||
func (this Timestamp) Bytes(b []byte) []byte {
|
||||
return serial.Int64ToBytes(int64(this), b)
|
||||
}
|
||||
|
||||
type TimestampGenerator func() Timestamp
|
||||
|
||||
Reference in New Issue
Block a user