aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/svcSetPause.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-21 01:53:59 +0300
committerGitHub <noreply@github.com>2023-09-21 01:53:59 +0300
commit171e350e348afadb55967b9c13d5eadc7f7d2cf4 (patch)
tree14ec93df8ccc1aca0cf453f826d46a402b09dc8f /pkg/messages/types/svcSetPause.go
parentdefine todos on packets (diff)
downloadsdp.go-171e350e348afadb55967b9c13d5eadc7f7d2cf4.tar.gz
sdp.go-171e350e348afadb55967b9c13d5eadc7f7d2cf4.tar.bz2
sdp.go-171e350e348afadb55967b9c13d5eadc7f7d2cf4.zip
add strings builder, customize ALL outputs (#6)
Diffstat (limited to 'pkg/messages/types/svcSetPause.go')
-rw-r--r--pkg/messages/types/svcSetPause.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg/messages/types/svcSetPause.go b/pkg/messages/types/svcSetPause.go
index 551a4d3..d979ac5 100644
--- a/pkg/messages/types/svcSetPause.go
+++ b/pkg/messages/types/svcSetPause.go
@@ -1,13 +1,18 @@
1package messages 1package messages
2 2
3import "github.com/pektezol/bitreader" 3import (
4 "github.com/pektezol/bitreader"
5 "github.com/pektezol/demoparser/pkg/writer"
6)
4 7
5type SvcSetPause struct { 8type SvcSetPause struct {
6 Paused bool 9 Paused bool
7} 10}
8 11
9func ParseSvcSetPause(reader *bitreader.Reader) SvcSetPause { 12func ParseSvcSetPause(reader *bitreader.Reader) SvcSetPause {
10 return SvcSetPause{ 13 svcSetPause := SvcSetPause{
11 Paused: reader.TryReadBool(), 14 Paused: reader.TryReadBool(),
12 } 15 }
16 writer.TempAppendLine("\t\tPaused: %t", svcSetPause.Paused)
17 return svcSetPause
13} 18}