diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-06-15 13:58:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-15 13:58:30 +0300 |
| commit | 77e4b066cb8d506b4bc944ab4eb2d6e4679e2202 (patch) | |
| tree | 1d549eca619ed36cb881e487cb054c4643ac8376 /pkg/messages/types/svcSetView.go | |
| parent | change project name to sdp.go (diff) | |
| download | sdp.go-77e4b066cb8d506b4bc944ab4eb2d6e4679e2202.tar.gz sdp.go-77e4b066cb8d506b4bc944ab4eb2d6e4679e2202.tar.bz2 sdp.go-77e4b066cb8d506b4bc944ab4eb2d6e4679e2202.zip | |
enable multithreading with goroutines (#20)
Diffstat (limited to 'pkg/messages/types/svcSetView.go')
| -rw-r--r-- | pkg/messages/types/svcSetView.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/messages/types/svcSetView.go b/pkg/messages/types/svcSetView.go index a392d36..55b2065 100644 --- a/pkg/messages/types/svcSetView.go +++ b/pkg/messages/types/svcSetView.go | |||
| @@ -2,17 +2,17 @@ package messages | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "github.com/pektezol/bitreader" | 4 | "github.com/pektezol/bitreader" |
| 5 | "github.com/pektezol/sdp.go/pkg/writer" | 5 | "github.com/pektezol/sdp.go/pkg/types" |
| 6 | ) | 6 | ) |
| 7 | 7 | ||
| 8 | type SvcSetView struct { | 8 | type SvcSetView struct { |
| 9 | EntityIndex uint16 | 9 | EntityIndex uint16 `json:"entity_index"` |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | func ParseSvcSetView(reader *bitreader.Reader) SvcSetView { | 12 | func ParseSvcSetView(reader *bitreader.Reader, demo *types.Demo) SvcSetView { |
| 13 | svcSetView := SvcSetView{ | 13 | svcSetView := SvcSetView{ |
| 14 | EntityIndex: uint16(reader.TryReadBits(11)), | 14 | EntityIndex: uint16(reader.TryReadBits(11)), |
| 15 | } | 15 | } |
| 16 | writer.TempAppendLine("\t\tEntity Index: %d", svcSetView.EntityIndex) | 16 | demo.Writer.TempAppendLine("\t\tEntity Index: %d", svcSetView.EntityIndex) |
| 17 | return svcSetView | 17 | return svcSetView |
| 18 | } | 18 | } |