diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-17 18:24:18 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-20 11:10:20 +0300 |
| commit | 6aa511f2ae3d5c84e7db02627ffd4d7f6796ce75 (patch) | |
| tree | e925740a5c04b1c5c44e725dab04f9b1833cf9e3 /pkg/messages/types/svcPaintmapData.go | |
| parent | parse netSignOnState flags (diff) | |
| download | sdp.go-6aa511f2ae3d5c84e7db02627ffd4d7f6796ce75.tar.gz sdp.go-6aa511f2ae3d5c84e7db02627ffd4d7f6796ce75.tar.bz2 sdp.go-6aa511f2ae3d5c84e7db02627ffd4d7f6796ce75.zip | |
decide what message types are left
Diffstat (limited to 'pkg/messages/types/svcPaintmapData.go')
| -rw-r--r-- | pkg/messages/types/svcPaintmapData.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/messages/types/svcPaintmapData.go b/pkg/messages/types/svcPaintmapData.go index 41ef515..380016a 100644 --- a/pkg/messages/types/svcPaintmapData.go +++ b/pkg/messages/types/svcPaintmapData.go | |||
| @@ -3,13 +3,13 @@ package messages | |||
| 3 | import "github.com/pektezol/bitreader" | 3 | import "github.com/pektezol/bitreader" |
| 4 | 4 | ||
| 5 | type SvcPaintmapData struct { | 5 | type SvcPaintmapData struct { |
| 6 | Length int32 | 6 | Length uint32 |
| 7 | Data []byte | 7 | Data []byte |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | func ParseSvcPaintmapData(reader *bitreader.Reader) SvcPaintmapData { | 10 | func ParseSvcPaintmapData(reader *bitreader.Reader) SvcPaintmapData { |
| 11 | svcPaintmapData := SvcPaintmapData{ | 11 | svcPaintmapData := SvcPaintmapData{ |
| 12 | Length: int32(reader.TryReadBits(32)), | 12 | Length: reader.TryReadUInt32(), |
| 13 | } | 13 | } |
| 14 | svcPaintmapData.Data = reader.TryReadBitsToSlice(uint64(svcPaintmapData.Length)) | 14 | svcPaintmapData.Data = reader.TryReadBitsToSlice(uint64(svcPaintmapData.Length)) |
| 15 | return svcPaintmapData | 15 | return svcPaintmapData |