package ber func UnmarshalBool(b byte) bool { return b != 0x00 } func MarshalBool(b bool) byte { if b { return 0xFF } return 0x00 }