diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2022-11-10 22:59:32 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 21:39:40 +0300 |
| commit | 9f5e8f230d35fffb106088b72e5fdb148905f450 (patch) | |
| tree | 2f22a5357a7bea2ce516b9a5e56e21435414529a /packets/messages/types/SvcSplitScreen.go | |
| parent | upgraded to v1.2.3 (diff) | |
| download | sdp.go-9f5e8f230d35fffb106088b72e5fdb148905f450.tar.gz sdp.go-9f5e8f230d35fffb106088b72e5fdb148905f450.tar.bz2 sdp.go-9f5e8f230d35fffb106088b72e5fdb148905f450.zip | |
added almost all net/svc messages - currently broken
Diffstat (limited to 'packets/messages/types/SvcSplitScreen.go')
| -rw-r--r-- | packets/messages/types/SvcSplitScreen.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packets/messages/types/SvcSplitScreen.go b/packets/messages/types/SvcSplitScreen.go new file mode 100644 index 0000000..6727558 --- /dev/null +++ b/packets/messages/types/SvcSplitScreen.go | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | package types | ||
| 2 | |||
| 3 | import "github.com/pektezol/bitreader" | ||
| 4 | |||
| 5 | type SvcSplitScreen struct { | ||
| 6 | Unk bool | ||
| 7 | Data []byte | ||
| 8 | } | ||
| 9 | |||
| 10 | func ParseSvcSplitScreen(reader *bitreader.ReaderType) SvcSplitScreen { | ||
| 11 | unk := reader.TryReadBool() | ||
| 12 | length := reader.TryReadBits(11) | ||
| 13 | return SvcSplitScreen{ | ||
| 14 | Unk: unk, | ||
| 15 | Data: reader.TryReadBytesToSlice(int(length / 8)), | ||
| 16 | } | ||
| 17 | } | ||