internal static void WriteHeader(ref SpanWriter writer, Guid?guid) { if (guid.HasValue) { writer.WriteByteArrayRaw(MagicStartOfFileWithGuid); writer.WriteGuid(guid.Value); } else { writer.WriteByteArrayRaw(MagicStartOfFile); } }