blob: 61d6290133bdcbe453427369dd7e8c007d77c160 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package messages
import (
"github.com/pektezol/bitreader"
)
type SvcCmdKeyValues struct {
Length uint32
Data []byte
}
func ParseSvcCmdKeyValues(reader *bitreader.Reader) SvcCmdKeyValues {
svcCmdKeyValues := SvcCmdKeyValues{
Length: reader.TryReadUInt32(),
}
svcCmdKeyValues.Data = reader.TryReadBytesToSlice(uint64(svcCmdKeyValues.Length))
return svcCmdKeyValues
}
|