diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 20:39:02 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 21:39:43 +0300 |
| commit | 81f365e99636104ff81151370048a51e8ae8027a (patch) | |
| tree | 0bd2781ad73fdc982abdcb70f9f44c551ac76bcf /pkg/messages/types/svcGetCvarValue.go | |
| parent | update CI workflow for go 1.21.0 (diff) | |
| download | sdp.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/svcGetCvarValue.go')
| -rw-r--r-- | pkg/messages/types/svcGetCvarValue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/messages/types/svcGetCvarValue.go b/pkg/messages/types/svcGetCvarValue.go index aef5c8e..0598722 100644 --- a/pkg/messages/types/svcGetCvarValue.go +++ b/pkg/messages/types/svcGetCvarValue.go | |||
| @@ -7,9 +7,9 @@ type SvcGetCvarValue struct { | |||
| 7 | CvarName string | 7 | CvarName string |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | func ParseSvcGetCvarValue(reader *bitreader.ReaderType) SvcGetCvarValue { | 10 | func ParseSvcGetCvarValue(reader *bitreader.Reader) SvcGetCvarValue { |
| 11 | svcGetCvarValue := SvcGetCvarValue{ | 11 | svcGetCvarValue := SvcGetCvarValue{ |
| 12 | Cookie: reader.TryReadStringLen(4), | 12 | Cookie: reader.TryReadStringLength(4), |
| 13 | CvarName: reader.TryReadString(), | 13 | CvarName: reader.TryReadString(), |
| 14 | } | 14 | } |
| 15 | return svcGetCvarValue | 15 | return svcGetCvarValue |