public static void WriteBool(CitoStream stream, bool val) { byte ret = 0; if (val) { ret = 1; } stream.WriteByte(ret); }