mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-09-10 16:49:44 +00:00
add crude encoding of PSN chunks
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package encoders
|
||||
|
||||
func EncodeInfoTrackerListChunk(trackerChunks [][]byte) []byte {
|
||||
trackerChunkBytes := []byte{}
|
||||
|
||||
for _, trackerChunk := range trackerChunks {
|
||||
trackerChunkBytes = append(trackerChunkBytes, trackerChunk...)
|
||||
}
|
||||
|
||||
return EncodeChunk(0x0002, trackerChunkBytes, true)
|
||||
}
|
||||
Reference in New Issue
Block a user