internal static void SetWasPersisted(this ProtoBufferWriter writer, bool wasPersisted) { if (writer.TryWriteBoolAtSavedPosition(wasPersisted)) { return; } WriteWasPersisted(writer, wasPersisted); }