code: func (bd *BinaryDecoder) ReadBoolean() (bool, error) {
  	b := bd.buf[bd.pos] & 0xFF
  	bd.pos++
  	var err error
  	if b != 0 && b != 1 {
  		err = InvalidBool
  	}
  	return b == 1, err
  }
docs: // ReadBoolean reads a boolean value. Returns a decoded value and an error if it occurs.