summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/Philipp15b/go-steam/protocol/steamlang/steamlang.go
blob: 795aa46874a84c650dbb603954a4b364dc0a2621 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
Contains code generated from SteamKit's SteamLanguage data.
*/
package steamlang

const (
	ProtoMask uint32 = 0x80000000
	EMsgMask         = ^ProtoMask
)

func NewEMsg(e uint32) EMsg {
	return EMsg(e & EMsgMask)
}

func IsProto(e uint32) bool {
	return e&ProtoMask > 0
}