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