diff options
Diffstat (limited to 'pkg/messages/types/svcVoiceData.go')
| -rw-r--r-- | pkg/messages/types/svcVoiceData.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pkg/messages/types/svcVoiceData.go b/pkg/messages/types/svcVoiceData.go deleted file mode 100644 index 6ac8050..0000000 --- a/pkg/messages/types/svcVoiceData.go +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | package messages | ||
| 2 | |||
| 3 | import ( | ||
| 4 | "github.com/pektezol/bitreader" | ||
| 5 | ) | ||
| 6 | |||
| 7 | type SvcVoiceData struct { | ||
| 8 | FromClient uint8 | ||
| 9 | Proximity bool | ||
| 10 | Length int16 | ||
| 11 | Data []byte | ||
| 12 | } | ||
| 13 | |||
| 14 | func ParseSvcVoiceData(reader *bitreader.Reader) SvcVoiceData { | ||
| 15 | svcVoiceData := SvcVoiceData{ | ||
| 16 | FromClient: reader.TryReadUInt8(), | ||
| 17 | } | ||
| 18 | proximity := reader.TryReadUInt8() | ||
| 19 | if proximity != 0 { | ||
| 20 | svcVoiceData.Proximity = true | ||
| 21 | } | ||
| 22 | svcVoiceData.Data = reader.TryReadBitsToSlice(uint64(svcVoiceData.Length)) | ||
| 23 | |||
| 24 | return svcVoiceData | ||
| 25 | } | ||