diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-11-06 18:37:11 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-11-06 18:37:11 +0300 |
| commit | 2f8c92f261586f68a976efce0cfcdd0401f402e0 (patch) | |
| tree | 33189cc48987789dff4e7fba0a74d2b2326f0a04 /pkg/messages/types/svcTempEntities.go | |
| parent | convert cm ticks correctly (diff) | |
| download | sdp.go-2f8c92f261586f68a976efce0cfcdd0401f402e0.tar.gz sdp.go-2f8c92f261586f68a976efce0cfcdd0401f402e0.tar.bz2 sdp.go-2f8c92f261586f68a976efce0cfcdd0401f402e0.zip | |
dont try to understand it, feel itlp-parser
Diffstat (limited to 'pkg/messages/types/svcTempEntities.go')
| -rw-r--r-- | pkg/messages/types/svcTempEntities.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/pkg/messages/types/svcTempEntities.go b/pkg/messages/types/svcTempEntities.go deleted file mode 100644 index 41b1afb..0000000 --- a/pkg/messages/types/svcTempEntities.go +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | package messages | ||
| 2 | |||
| 3 | import ( | ||
| 4 | "github.com/pektezol/bitreader" | ||
| 5 | ) | ||
| 6 | |||
| 7 | type SvcTempEntities struct { | ||
| 8 | NumEntries uint8 | ||
| 9 | Length uint32 | ||
| 10 | Data []byte | ||
| 11 | } | ||
| 12 | |||
| 13 | func ParseSvcTempEntities(reader *bitreader.Reader) SvcTempEntities { | ||
| 14 | svcTempEntities := SvcTempEntities{ | ||
| 15 | NumEntries: reader.TryReadUInt8(), | ||
| 16 | Length: uint32(reader.TryReadBits(17)), | ||
| 17 | } | ||
| 18 | svcTempEntities.Data = reader.TryReadBitsToSlice(uint64(svcTempEntities.Length)) | ||
| 19 | |||
| 20 | return svcTempEntities | ||
| 21 | } | ||