mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-09-03 05:19:10 +00:00
add crude encoding of PSN chunks
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package encoders
|
||||
|
||||
func EncodeDataTrackerChunk(trackerId uint16, fieldChunks [][]byte) []byte {
|
||||
fieldChunkBytes := []byte{}
|
||||
|
||||
for _, fieldChunk := range fieldChunks {
|
||||
fieldChunkBytes = append(fieldChunkBytes, fieldChunk...)
|
||||
}
|
||||
|
||||
return EncodeChunk(trackerId, fieldChunkBytes, len(fieldChunks) > 0)
|
||||
}
|
||||
Reference in New Issue
Block a user