aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/svcPaintmapData.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-16 20:39:02 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-16 21:39:43 +0300
commit81f365e99636104ff81151370048a51e8ae8027a (patch)
tree0bd2781ad73fdc982abdcb70f9f44c551ac76bcf /pkg/messages/types/svcPaintmapData.go
parentupdate CI workflow for go 1.21.0 (diff)
downloadsdp.go-81f365e99636104ff81151370048a51e8ae8027a.tar.gz
sdp.go-81f365e99636104ff81151370048a51e8ae8027a.tar.bz2
sdp.go-81f365e99636104ff81151370048a51e8ae8027a.zip
feat: parsing sar custom data (#4)
Diffstat (limited to 'pkg/messages/types/svcPaintmapData.go')
-rw-r--r--pkg/messages/types/svcPaintmapData.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/messages/types/svcPaintmapData.go b/pkg/messages/types/svcPaintmapData.go
index 6b041da..41ef515 100644
--- a/pkg/messages/types/svcPaintmapData.go
+++ b/pkg/messages/types/svcPaintmapData.go
@@ -7,10 +7,10 @@ type SvcPaintmapData struct {
7 Data []byte 7 Data []byte
8} 8}
9 9
10func ParseSvcPaintmapData(reader *bitreader.ReaderType) SvcPaintmapData { 10func ParseSvcPaintmapData(reader *bitreader.Reader) SvcPaintmapData {
11 svcPaintmapData := SvcPaintmapData{ 11 svcPaintmapData := SvcPaintmapData{
12 Length: int32(reader.TryReadBits(32)), 12 Length: int32(reader.TryReadBits(32)),
13 } 13 }
14 svcPaintmapData.Data = reader.TryReadBitsToSlice(int(svcPaintmapData.Length)) 14 svcPaintmapData.Data = reader.TryReadBitsToSlice(uint64(svcPaintmapData.Length))
15 return svcPaintmapData 15 return svcPaintmapData
16} 16}