add crude encoding of PSN chunks

This commit is contained in:
2024-12-19 18:28:12 -06:00
parent 03ec5a4019
commit e3bbb970be
17 changed files with 213 additions and 0 deletions
@@ -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)
}