aboutsummaryrefslogtreecommitdiff
path: root/pkg/classes/consoleCmd.go
blob: aeb56a2668a045a95fba391487d9b9f74ddb32fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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))

}