aboutsummaryrefslogtreecommitdiff
path: root/pkg/classes/stop.go
blob: 753be196ecf2a83788c905bdbc541f898da00b46 (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/demoparser/pkg/writer"
)

type Stop struct {
	RemainingData []byte
}

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