blob: 49aa433f368165e33b38fd40b30041e8a2fd56ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package messages
import (
"github.com/pektezol/bitreader"
)
type SvcPaintmapData struct {
Length uint32
Data []byte
}
func ParseSvcPaintmapData(reader *bitreader.Reader) SvcPaintmapData {
svcPaintmapData := SvcPaintmapData{
Length: reader.TryReadUInt32(),
}
svcPaintmapData.Data = reader.TryReadBitsToSlice(uint64(svcPaintmapData.Length))
return svcPaintmapData
}
|