mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-08-12 10:53:54 +00:00
15 lines
256 B
Go
15 lines
256 B
Go
package encoders
|
|
|
|
import (
|
|
"encoding/binary"
|
|
"math"
|
|
)
|
|
|
|
func EncodeDataTrackerStatusChunk(validity float32) []byte {
|
|
bytes := make([]byte, 4)
|
|
|
|
binary.LittleEndian.PutUint32(bytes, math.Float32bits(validity))
|
|
|
|
return EncodeChunk(0x0003, bytes, false)
|
|
}
|