blob: a5d8f6230ce6904273823db604fdf9a9f8fa546f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package messages
import (
"github.com/pektezol/bitreader"
"github.com/pektezol/sdp.go/pkg/writer"
)
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))
writer.TempAppendLine("\t\tData: %v", svcCmdKeyValues.Data)
return svcCmdKeyValues
}
|