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

import (
	"github.com/pektezol/bitreader"
)

type ConsoleCmd struct {
	Size int32
	Data string
}

func (consoleCmd *ConsoleCmd) ParseConsoleCmd(reader *bitreader.Reader) {
	consoleCmd.Size = reader.TryReadSInt32()
	consoleCmd.Data = reader.TryReadStringLength(uint64(consoleCmd.Size))
}