mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-09-01 12:29:13 +00:00
add crude encoding of PSN chunks
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package encoders
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
)
|
||||
|
||||
func EncodeDataTrackerTimestampChunk(timestamp uint64) []byte {
|
||||
bytes := make([]byte, 8)
|
||||
|
||||
binary.LittleEndian.PutUint64(bytes, timestamp)
|
||||
|
||||
return EncodeChunk(0x0006, bytes, false)
|
||||
}
|
||||
Reference in New Issue
Block a user