aboutsummaryrefslogtreecommitdiff
path: root/ber/bool.go
blob: 39d2562048de11d986c44e8dc1bb5f94e0d070fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package ber

func UnmarshalBool(b byte) bool {
	return b != 0x00
}

func MarshalBool(b bool) byte {
	if b {
		return 0xFF
	}
	return 0x00
}