aboutsummaryrefslogtreecommitdiff
path: root/ber/bool.go
blob: 3bff6937d7193015273115e3e2e84f61164bd438 (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
}