aboutsummaryrefslogtreecommitdiff
path: root/pkg/classes/stop.go
blob: c6b52a92e3e2cba944100565d83c6d055b494b94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package classes

import (
	"github.com/pektezol/bitreader"
	"github.com/pektezol/sdp.go/pkg/types"
)

type Stop struct {
	RemainingData []byte `json:"remaining_data"`
}

func (stop *Stop) ParseStop(reader *bitreader.Reader, demo *types.Demo) {
	if reader.TryReadBool() {
		stop.RemainingData = reader.TryReadBitsToSlice(uint64(reader.TryReadRemainingBits()))
		demo.Writer.AppendLine("\tRemaining Data: %v", stop.RemainingData)
	}
}