1
0
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:
v2ray
2016-06-26 22:34:48 +02:00
parent d12d5b0593
commit 67ac925ee7
16 changed files with 78 additions and 64 deletions

View File

@@ -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