aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/svcPaintmapData.go
blob: 10f8031a2a2c168ccf2ec77a390bd97f68bce3dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package messages

import (
	"github.com/pektezol/bitreader"
	"github.com/pektezol/sdp.go/pkg/writer"
)

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))
	writer.TempAppendLine("\t\tData: %v", svcPaintmapData.Data)
	return svcPaintmapData
}