mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-08-11 10:23:56 +00:00
14 lines
234 B
Go
14 lines
234 B
Go
package encoders
|
|
|
|
import (
|
|
"encoding/binary"
|
|
)
|
|
|
|
func EncodeDataTrackerTimestampChunk(timestamp uint64) []byte {
|
|
bytes := make([]byte, 8)
|
|
|
|
binary.LittleEndian.PutUint64(bytes, timestamp)
|
|
|
|
return EncodeChunk(0x0006, bytes, false)
|
|
}
|